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

.NET MAUI Border Styling

The Border control provides options for styling its appearance and enables you to set its color and thickness.

Border Color

To specify the color of the Border, use the BorderColor property. If the thickness of the Border is 0, the BorderColor property is disabled.

Border Thickness

To specify the width of the Border control, use its BorderThickness property.

BorderThickness is of the Microsoft.Maui.Thickness type and allows you to define a different border on each side of the surrounded element.

The following example demonstrates how to use the BorderColor and BorderThickness properties.

<telerik:RadBorder BorderColor="#4488F6" BorderThickness="1, 2, 1, 2">
    <Label Text="Hello there" Margin="2" />
</telerik:RadBorder>

The following image shows the end result.

Border Styling

See Also

In this article