Customization in UWP Barcode

The color of the barcode can be customized by modifying the DarkBarBrush and LightBarBrush properties of the barcode control.

<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" LightBarBrush="Blue" DarkBarBrush="Red" Symbology="Code128A"/>

The DarkBarBrush represents the color of the dark bar (Black color usually) and the LightBarBrush represents the color of the gap between two adjacent black bars (White color usually).

uwp-Barcode-Red-Color-Combination

Barcode color combination - Red

uwp-Barcode-Blue-Color-Combination

Barcode color combination - Blue

The DarkBarBrush and LightBarBrush customizations are applicable only for one dimensional barcodes. 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 barcode scanners support colored barcodes.