Xamarin.Android | ComponentOne
Controls / Calendar / Features / Selection
In This Topic
    Selection
    In This Topic

    The C1Calendar control allows users to select a day on the calendar by tapping a date. However, you can set the number of days that you wish to select by using the MaxSelectionCount property in code. For instance, on setting the MaxSelectionCount property to 5, you can select a maximum of 5 days on the calendar as illustrated in the image below.

    In Code

    The following code example illustrates how to set maximum selection in C#. The following code example uses the sample created in the Quick Start.

    C#
    Copy Code
    // setting maximum selection
    calendar.MaxSelectionCount = 5;