CANT FIND MINDATE PROPERTY IN WPF CALENDAR CONTROL

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
VB.Net 
 1300  View(s)
Ratings:
Rate this:
Hi Developers,

I can't find minDate Property in Calendar control in WPF 4.0.

If there is no minDate or maxDate property in Calendar Control then how could I achieve the same?

Any help would be amazing thank you!
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: cant find MinDate Property in WPF Calendar Control

    Hi Ashish,

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

    Try as following

        <Grid>
            <Calendar ... DisplayDateStart="5/1/2013" DisplayDateEnd="3/31/2014" />
        </Grid>

    I hope it resolve your problem. 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!