Barcode Customization in WinUI Barcode

Background

The Barcode background color can be changed using Background property.

<syncfusion:SfBarcode x:Name="barcode" Background="Orange" Value="1010111011" Height="150" />

Foreground

The Barcode foreground color can be changed using Foreground property.

<syncfusion:SfBarcode x:Name="barcode" Foreground="White" Value="1010111011" Height="150" />

Barcode_Customization

NOTE

In order for a barcode symbol to be recognized by a scanner, there must be an adequate contrast between the dark bars and the light spaces and not all the barcode scanners have support for colored barcodes.

Module

The width ratio of the wide and narrow bars can be customized using Module property.

<syncfusion:SfBarcode x:Name="barcode" Module="1" Value="48625310" ShowValue="False" Height="150" />

Module