Articles in this section

How to localize the WinUI Date Picker (SfDatePicker)

Localize the WinUI DatePicker (SfDatePicker) based on the culture by using the Language property of the date picker. By default, the date picker control is displayed in the en-US language.

 

The Date Picker control updates the flow direction visually based on the Language property value. When the Language and FlowDirection properties are set, the FlowDirection property has higher precedence.

 

XAML

<Window
    x:Class=" Localization.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Localization"
    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">
    <editors:SfDatePicker 
                      x:Name="sfDatePicker"
                      Language="ar-SA"/>
</Window>

 

 

WinUI Date Picker localization

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied