Value and Symbology
The symbology determines how the Barcode information is encoded into the image.
The Barcode exposes a Value
property that is used to set the barcode data presented by the control. It determines the way the data will be visualized by using one of the common barcode specifications. To set the desired type of visualization, use the Symbology
property of RadBarcode
.
The most common symbologies that are supported by Barcode are:
- EAN13
- EAN8
- UPC-A
- UPC-E
- Code39
- QRCode
- PDF417
For more details on the available Telerik UI for WinUI Barcode symbologies, refer to the articles on supported 1D and 2D Barcode types.
The following example shows how to use the Code39
symbology class.
Code39 symbology
<Grid Background="White" xmlns:telerikDataViz="using:Telerik.UI.Xaml.Controls.DataVisualization">
<telerikDataViz:RadBarcode Width="250" Height="150" Value="58000106" Foreground="Black"
HorizontalAlignment="Center" VerticalAlignment="Center">
<telerikDataViz:RadBarcode.Symbology>
<telerikDataViz:Code39 HorizontalTextAlignment="Center"
SizingMode="Stretch"
ShowText="True"
CodeTextSpacing="10"/>
</telerikDataViz:RadBarcode.Symbology>
</telerikDataViz:RadBarcode>
</Grid>