Scheduler for WPF | ComponentOne
In This Topic
    Setting the Maximum and Minimum Allowable Dates
    In This Topic

    To set the maximum and minimum allowable dates for the C1Calendar, use the CalendarBase.MaxDate and CalendarBase.MinDate properties.

    Using Visual Studio

    To set the maximum and minimum allowable dates for the C1Calendar in Visual Studio:

    1. Add a C1Calendar control to your window and select it.
    2. In the Properties window, enter ‘12/31/2099’ next to the CalendarBase.MaxDate  property.
    3. In the Properties window, enter ‘1/1/1700’ next to the CalendarBase.MinDate property.

    Using XAML

    The following XAML sets the  CalendarBase.MaxDate and CalendarBase.MinDate properties:

    XAML
    Copy Code
    <c1:C1Calendar HorizontalAlignment="Left" Margin="10,10,0,0" Name="c1Calendar1" VerticalAlignment="Top" MaxDate="2099-12-31" MinDate="1700-01-01" />