New to Telerik UI for .NET MAUI? Start a free 30-day trial

Content Alignment in .NET MAUI Button

The Button enables you to set the positioning of its content.

To define a specific position of the Button content, set the HorizontalContentAlignment and VerticalContentAlignment properties of the Button, which are of the Microsoft.Maui.TextAlignment type.

The following example demonstrates how to use the properties.

<telerik:RadButton Text="Click me!"  
                   VerticalContentAlignment="Start" />

The following image shows the end result.

Button Content Alignment

See Also

In this article