# .NET MAUI Barcode Styling

The Barcode enables you to change the visual appearance of your barcodes so they match your application theme.

**1.** To change the colors of the control, set the `ForegroundColor` and `BackgroundColor` properties.

```XAML
<telerik:RadBarcode WidthRequest="200" HeightRequest="100" 
    HorizontalOptions="Center" VerticalOptions="Center" 
    ForegroundColor="DarkBlue"
    BackgroundColor="Beige"
    Value="58000106">
    <telerik:RadBarcode.Symbology>
        <telerik:Code39 SizingMode="Stretch" />
    </telerik:RadBarcode.Symbology>
</telerik:RadBarcode>
```

**2.** Add the `telerik` namespace.

```XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
```

The following image shows a barcode with custom colors.

![Telerik UI for .NET MAUI Barcode with custom foreground and background colors](https://www.telerik.com/maui-ui/documentation/assets/5b1d5df980353eaa0a9c87db3eed5ac7/barcode_colors.png)

## See Also

* [1D Supported Barcodes](https://www.telerik.com/maui-ui/documentation/controls/barcode/1d-barcodes/overview)
* [2D Supported Barcodes](https://www.telerik.com/maui-ui/documentation/controls/barcode/2d-barcodes/overview)
