Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find minimum date (MinDate) property in WPF calendar control

I can't find a minimum date (MinDate) property in the calendar control in WPF 4.0.

If there is no minimum date or maximum date property in the calendar control then how could I achieve the same?

like image 205
Vishal Avatar asked Jun 10 '13 12:06

Vishal


1 Answers

Are you just looking to restrict the selectable beginning/ending dates? If so you can use DisplayDateStart and DisplayDateEnd:

    <Grid>
        <Calendar ... DisplayDateStart="5/1/2013" DisplayDateEnd="3/31/2014" />
    </Grid>
like image 114
maxedev Avatar answered Sep 21 '22 15:09

maxedev