Right-to-Left in .NET MAUI TreeView (SfTreeView)
14 Jul 20261 minute to read
The SfTreeView control supports displaying its content in a right-to-left (RTL) layout for languages such as Arabic, Hebrew, and Urdu. To enable RTL, set the FlowDirection property to RightToLeft. The FlowDirection can be set directly on the SfTreeView or inherited from its parent layout. By default, the FlowDirection is set to LeftToRight.
Enabling right-to-left
<syncfusion:SfTreeView x:Name="treeView"
FlowDirection="RightToLeft"/>
using Syncfusion.Maui.TreeView;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
SfTreeView treeView = new SfTreeView();
treeView.FlowDirection = FlowDirection.RightToLeft;
}
}