Right-to-Left in .NET MAUI Button (SfButton)
24 Jul 20261 minute to read
The [.NET MAUI Button](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Buttons.SfButton.html) supports right-to-left (RTL) layout by setting [FlowDirection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.flowdirection?view=net-maui-11.0) to RightToLeft`, or by changing the device language to an RTL language such as Arabic or Hebrew.
Prerequisites
Before using the SfButton, ensure the following NuGet package is installed in your .NET MAUI project:
Syncfusion.Maui.Buttons
For a step-by-step setup, refer to the Getting Started documentation.
Enabling RTL on the Button
You can set FlowDirection directly on the Button to enable RTL for that control. The Button renders its content (text and image) in the right-to-left direction.
<buttons:SfButton x:Name="button"
FlowDirection="RightToLeft"
ImageSource="add_to_card.png"
ShowIcon="True"
HeightRequest = "50"
Text="Add to cart" />SfButton button = new SfButton()
{
FlowDirection = FlowDirection.RightToLeft,
Text = "Add to cart",
HeightRequest = 50,
ImageSource = ImageSource.FromFile("add_to_card.png"),
ShowIcon = true,
};
this.Content = button;The following image shows the result of the code above:
