How to change the calendar types in WinUI Calendar Date Range Picker (SfCalendarDateRangePicker)
How to change the calendar type in the WinUI CalendarDateRangePicker (SfCalendarDateRangePicker)
In the WinUI CalendarDateRangePicker (SfCalendarDateRangePicker), change the calendar type by using the CalendarIdentfier property of the calendar date range picker.
Supported calendar types:
- JulianCalendar
- GregorianCalendar
- HebrewCalendar
- HijriCalendar
- KoreanCalendar
- TaiwanCalendar
- ThaiCalendar
- UmAlQuraCalendar
- PersianCalendarNote:
When both the CalendarIdentifier and the FlowDirection properties are set, the FlowDirection property is given higher precedence.
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" Width="500" Height="500" CalendarIdentifier="HebrewCalendar"/> </Window>
