i need datepicker in window store app , windows 8, but i am not able to find any control, so i used this :
jasonmitchell / WinRT-XAML-DatePicker
but my problem is , by default it shows today date, that i don't want, i don't want to show any date, if user did not apply any date
if anybody have idea to working with date-picker in windows metro application, that will be great,
i know windows 8.1 have that control but i cannot moved to windows 8.1 now!
code example :
<WinRTDatePicker:DatePicker IsEnabled="True" x:Name="dtActualFinishDate" Width="370"/>
i want to set value if
if (Booking.ActualToDteTme.HasValue)
{
dtActualFinishDate.SelectedDate = Booking.ActualToDteTme.Value;
}
so if ActualToDteTme have any value, i want to apply otherwise, i need to keep datepicker is as blank,
for now it is show as currect date, and when i click on Update, it updated current date !! that's not right behaviour!!
Thanks
I am giving you updated
DatePicker
&SelectedDateChangedEventArgs
class. Use these classes instead from Github. I have added default "month", "date", "year" placeholder text. Default value will be null & if anyone selects placeholder text then also it will be null.For the binding to work you should change SelectedDateProperty to
to avoid the error: