DatePicker BlackoutDates all future and some past

后端 未结 2 415
失恋的感觉
失恋的感觉 2021-01-23 17:54

I have a WPF application where a birthdate is required using DatePicker. I\'d like to blackout dates of tomorrow and the rest of time in addition to, say 134 years ago and every

2条回答
  •  [愿得一人]
    2021-01-23 18:36

    You have to choose range for the datepicker itself, too. if you wont, so nothing will be blacked out. I think they know about this lack feature, but currently you need to give your date picker a Start date same as your blackout dates. Every other date out of the datepicker's range won't be shown at all. I think it is better for you to do that instead of blacking out dates.

提交回复
热议问题