Right To Left in .NET MAUI Button (SfButton)
17 Jan 20251 minute to read
SfButton supports changing the layout direction of the control in the right-to-left direction by setting the FlowDirection to RightToLeft or by changing the device language.
<buttons:SfButton x:Name="button"
FlowDirection="RightToLeft"
ImageSource="add_to_card.png"
ShowIcon="True"
Text="Add to cart"/>SfButton button = new SfButton()
{
FlowDirection = FlowDirection.RightToLeft,
Text = "Add to cart",
ImageSource = "add_to_card.png",
ShowIcon = true,
};The following image illustrates the result of the above code:
