Right To Left in .NET MAUI ListView (SfListView)
13 Jul 20261 minute to read
Syncfusion® SfListView supports changing the flow of text to the right-to-left direction by setting the FlowDirection to RightToLeft in both Vertical and Horizontal orientations. RTL can be applied explicitly on the SfListView by setting the FlowDirection property, or inherited from a parent visual element or the device’s system flow direction.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView">
<ContentPage.Content>
<syncfusion:SfListView x:Name="listView" FlowDirection="RightToLeft"/>
</ContentPage.Content>
</ContentPage>using Microsoft.Maui.Controls;
using Syncfusion.Maui.ListView;
namespace RtlSample;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
listView.FlowDirection = FlowDirection.RightToLeft;
}
}
Limitation
- Items are not arranged right-to-left when
SfListView.Orientationis set toHorizontaland the AutoFitMode isHeightorDynamicHeight.