DatePicker BlackoutDates all future and some past
问题 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 everything beyond that. I've tried accomplishing this with BlackoutDates because we still want to allow for manual user input, but I've been unsuccessful. Is there an easy way to accomplish this? 回答1: Thanks so much for both of you quickly replying. I was actually able to figure this out using DateTime.MaxValue and DateTime