Scheduler for WPF | ComponentOne
In This Topic
    Changing the Calendar Month or Year
    In This Topic

    You can easily change the selected month or year of a C1Calendar control using the CalendarBase.SelectedDate property.

    Using XAML

    The following XAML sets the CalendarBase.SelectedDate property:

    XAML
    Copy Code
    <c1:C1Calendar Margin="10,10,82,89" Name="c1Calendar1" HorizontalAlignment="Left" Width="182" Height="159" VerticalAlignment="Top" SelectedDate="2010-08-5" />
    

     

    At Run Time

    To change the month or year of a C1Calendar control at run time:

    1. Click the month or year at the top of the calendar. A pop-up list appears.

    2. Select the desired month or year. If the month or year you are looking for does not appear in the list, select the last month or year and click the month or year again to see a new list.