I have a datapicker in wpf and I have to disable past dates. I am using a MVVM pattern. Is it possible?
How do you do it?
You can use the DisplayDateStart
and DisplayDateEnd
properties of DatePicker
. They are dependencies properties so you can supply them via your DataContext
using MVVM. Here's the documentation:
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