Click here to Skip to main content
15,886,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi im using this on wpf
        <
xctk:DateTimePicker Grid.Column="0"  Value="{Binding SelectedDateTime}" Grid.Row="3" Grid.ColumnSpan="4" FontSize="18" FontWeight="Black"/>

does any body knows how to set the date and time now? when opening the date and time picker?

What I have tried:

thanks in advance for the help
Posted
Updated 23-Jun-18 4:51am

1 solution

Initialize the binding with the desired date time: SelectedDateTime (which should be a member of your "view model").
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900