C1Scheduler Task-Based Help > C1Calendar Tasks > Specifying the Maximum Number of Days that can be Selected in C1Calendar |
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:
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" /> |