c# - Set culture for a WPF DateTimePicker validation -
i use datetimepicker on wpf application. bind .text property selecteddate, use binding this:
<datepicker x:name="datetimepicker_date" text="{binding ddate, mode=twoway, updatesourcetrigger=propertychanged, targetnullvalue='', validatesondataerrors=true}" tabindex="3" grid.column="1" /> my problem use european culture, so: day/month/year instead of month/day/year, if input : 14/02/2013, have validation error !
how can solve this?
solved :
juste add :
this.language = xmllanguage.getlanguage("fr-fr"); in code-behind of windows :)
Comments
Post a Comment