ComponentOne Scheduler for WPF and Silverlight
C1Scheduler Task-Based Help / C1Calendar Tasks / Specifying the Maximum Number of Days that can be Selected in C1Calendar
In This Topic
    Specifying the Maximum Number of Days that can be Selected in C1Calendar
    In This Topic

    To specify the maximum number of days that can be selected in C1Calendar, set the C1Calendar.MaxSelectionCount property to an integer. In this example, we will allow a maximum of 31 days that can be selected in the calendar month display area.

    Using Visual Studio

    To set the maximum number of selected days to ‘31’ in Visual Studio:

    1. Add a C1Calendar control to your window and select it.
    2. In the Properties window, enter ‘31’ next to the C1Calendar.MaxSelectionCount property.

    Using XAML

    The following XAML sets the C1Calendar.MaxSelectionCount property to ‘31’:

    XAML
    Copy Code
    <c1:C1Calendar HorizontalAlignment="Left" Margin="10,10,0,0" Name="c1Calendar1" VerticalAlignment="Top" MaxSelectionCount="31" />