New to Telerik UI for WinUI? Download free 30-day trial

Styling

The Barcode component allows you to customize its appearance.

To change the colors of the symbology visualization and the background behind it, set the Foreground and Background properties of the component. The telerikDataViz namespace from the following example points to xmlns:telerikDataViz="using:Telerik.UI.Xaml.Controls.DataVisualization".

Change the Barcode colors

<telerikDataViz:RadBarcode Width="250" Height="150"  
                           Foreground="DarkBlue" Background="Beige" 
                           Value="58000106">            
    <telerikDataViz:RadBarcode.Symbology> 
        <telerikDataViz:Code39 SizingMode="Stretch" /> 
    </telerikDataViz:RadBarcode.Symbology> 
</telerikDataViz:RadBarcode> 

A Barcode with customized colors

Barcode Colors

In this article
Not finding the help you need?