Articles in this section
Category / Section

How to localize the WinUI TimePicker?

2 mins read

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

 

Note:

The Time 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:SfTimePicker 
                      x:Name="sfTimePicker"
                      Language="ar-SA"/>
</Window>

 

WinUI Time picker localization

Conclusion

I hope you enjoyed learning about how to localize the WinUI TimePicker.

You can refer to our  WinUI TimePicker feature tour page to know about its other groundbreaking feature representations. You can also explore our WinUI TimePicker documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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