# C1Calendar Selection

## Content

By default, one day can be selected at a time. You can select more than one day by increasing the value of the [C1Calendar.MaxSelectionCount](/componentone/api/wpf/online-scheduler/dotnet-framework-api/C1.WPF.Schedule.4.6.2/C1.WPF.Schedule.C1Calendar.MaxSelectionCount.html) property. At run time depending on the value of the **C1Calendar.MaxSelectionCount** property, multiple days can be selected while holding the **CTRL** key and clicking the left mouse button. The selectable days appear with an orange backcolor by default.

![C1WPF Scheduler - Calendar control showing multiple selected dates highlighted using Ctrl-click selection.](https://cdn.mescius.io/document-site-files/images/4c5f07fe-a0aa-4d09-95ef-6685908019cd/graphics/selecteddays.png)
You can specify the maximum and minimum date for date selection on the calendar through the [CalendarBase.MaxDate](/componentone/api/wpf/online-scheduler/dotnet-framework-api/C1.WPF.Schedule.4.6.2/C1.WPF.Schedule.CalendarBase.MaxDate.html) and [CalendarBase.MinDate](/componentone/api/wpf/online-scheduler/dotnet-framework-api/C1.WPF.Schedule.4.6.2/C1.WPF.Schedule.CalendarBase.MinDate.html) properties. By default the minimum is 1/1/1753 and the maximum is 12/31/9998. When the maximum and minimum dates are applied, the dates past these values become unselectable. As a result, the selection color or action will not be applicable if the user attempts to select a date past the specified range.

## 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](/componentone/api/wpf/online-scheduler/dotnet-framework-api/C1.WPF.Schedule.4.6.2/C1.WPF.Schedule.C1Calendar.MaxSelectionCountProperty.html) 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’:

```xml

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