Reputation: 1179
I need to be able to disable the selection of future dates within the Silverlight DatePicker control - any ideas ?
Upvotes: 6
Views: 6706
Reputation: 11
Use the MaxDate to Blackout the future dates
System.DateTime DatesDisplayEnd = today.Add(duration); System.DateTime MaxDate = DateTime.MaxValue;
stkDatePicker.BlackoutDates.Add(new CalendarDateRange(DatesDisplayEnd, MaxDate));
Upvotes: 1