Right To Left in .NET MAUI TreeView (SfTreeView)
19 Sep 20231 minute to read
SfTreeView
supports changing the flow of text to the right-to-left direction by setting the FlowDirection to RightToLeft
. TreeView supports RTL when the flow direction of the device is changed.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.TreeView;assembly=Syncfusion.Maui.TreeView"
x:Class="Selection.MainPage">
<ContentPage.Content>
<syncfusion:SfTreeView x:Name="treeView"
FlowDirection="RightToLeft"/>
</ContentPage.Content>
</ContentPage>
SfTreeView treeView = new SfTreeView();
treeView.FlowDirection = FlowDirection.RightToLeft;