How to change the date selection mode in WinUI calendar (SfCalendar)
In the WINUI calendar, you can select the dates based on requirements such as single, multiple, range, and none. By default, the SelectionMode property value is Single.
Multiple- One or more dates can be selected at a time.
None- Date selection is disabled.
Range- A range of dates can be selected at a time.
Single- One date can be selected at a time.
XAML
<Window x:Class="SelectionMode.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:SelectionMode" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:calendar="using:Syncfusion.UI.Xaml.Calendar"> <Grid> <calendar:SfCalendar Name="Calendar" SelectionMode="Range"/> </Grid> </Window>
