Version

Configuring XDimension

For all barcode grid symbologies (excluding the MaxiCode), the XDimension property defines the narrow element width for the symbol in millimeters. The property value is used when Stretch.None is used to specify the width of the symbology. The nominal value for every barcode is set as its default value.

Here is a comparison between two barcodes:

xamBarcode XDimension 01.png

In XAML:

<ig:XamCode128Barcode x:Name="barcode1" Data="Code Data" Stretch="None" XDimension="0.25" />

<ig:XamCode128Barcode x:Name="barcode2" Data="Code Data" Stretch="None" XDimension="0.8"/>

In Visual Basic:

Dim barcode1 As New XamCode128Barcode()
barcode1.Data = "Code Data"
barcode1.Stretch = Stretch.None
barcode1.XDimension = 0.25

Dim barcode2 As New XamCode128Barcode()
barcode2.Data = "Code Data"
barcode2.Stretch = Stretch.None
barcode2.XDimension = 0.8

In C#:

var barcode1 = new XamCode128Barcode();
barcode1.Data = "Code Data";
barcode1.Stretch = Stretch.None;
barcode1.XDimension = 0.25;

var barcode2 = new XamCode128Barcode();
barcode2.Data = "Code Data";
barcode2.Stretch = Stretch.None;
barcode2.XDimension = 0.8;