Friday 15 January 2010

c# - DatePicker WPF + entering partial date -



c# - DatePicker WPF + entering partial date -

i have datepicker in wpf application. text property of datepicker bound nullable datetime property in view model. updatesourcetrigger set propertychanged.

the problem facing when come in today's date 2/10, posts view model '2/10/2014'. there doing wrong.

is there way stop partial date posted view model on text change?

also not wish alter nullable datetime text.

thanks sandeep

if want stop update on text changing should seek set "updatesourcetrigger=lostfocus", in way source going updated 1 time datepicker lose focus.

also not wish alter nullable datetime text.

in case should bind datepicker.selecteddate property.

c# wpf datepicker

No comments:

Post a Comment