Reputation: 149
I used DatePicker-Control
in my Silverlight project.
How to set the Max Date
of DatePicker
.
e.g. If the max date is 12/31/9998, and then we can not input the year which later than 9999 in DatePicker-Control
.
We just want to restraint the max date which inputed in the DatePicker
.
Thanks.
Upvotes: 1
Views: 2130
Reputation: 13640
I think you need DatePicker.DisplayDateEnd Property.
To prevent inputting wrong date you can implement INotifyDataErrorInfo. More Info.
Upvotes: 1
Reputation: 3568
You can try this: Handling Start and End dates with Custom DatePicker Control
Upvotes: 0