zclmoon
zclmoon

Reputation: 149

Set the min/max date of DatePicker Control in Silverlihgt

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

Answers (2)

Zabavsky
Zabavsky

Reputation: 13640

I think you need DatePicker.DisplayDateEnd Property.

To prevent inputting wrong date you can implement INotifyDataErrorInfo. More Info.

Upvotes: 1

Related Questions