How to restrict the view navigation of the WinUI Calendar Date Range Picker (SfCalendarDateRangePicker)
In the WinUI CalendarDateRangePicker , by default, navigate between the month, year, decade, and century views by tapping the calendar picker header and date. You can restrict the view navigation by using the MinDisplayMode and MaxDisplayMode properties of the calendar date range picker.
XAML
<Window x:Class="CellCustomization.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:CellCustomization" 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" xmlns:editors="using:Syncfusion.UI.Xaml.Editors"> <calendar:SfCalendarDateRangePicker x:Name="sfCalendarDateRangePicker" MinDisplayMode="Month" MaxDisplayMode="Month" /> </Window>