I need to be able to disable the selection of future dates within the Silverlight DatePicker control - any ideas ?
http://msdn.microsoft.com/en-us/library/system.windows.controls.datepicker.displaydateend(VS.95).aspx
DatePicker.DisplayDateEnd = DateTime.Now;
?
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));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With