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="#04A2AA"
                   CornerRadius="0, 0, 8, 0"
                   BorderThickness="1, 1, 1, 3">
    <Label Text="Telerik .NET MAUI Border" Margin="8" />
</telerik:RadBorder>

The following image shows the end result.

Border Styling

See Also

In this article