Question

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?

Était-ce utile?

La solution

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>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top