# .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.

```XAML
<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.

![Telerik UI for .NET MAUI Border styling example with colored border around message content](https://www.telerik.com/maui-ui/documentation/assets/cf61500a12bce84cca2239c41fdc4cf2/border-styling.png)

## See Also

* [Configuring the Corner Radius of the Border](https://www.telerik.com/maui-ui/documentation/controls/border/corner-radius)
