In the WPF subdirectory of the evaluation version you will find the Windows
Presentation Foundation version of our assemblies. There is one assembly for
the 1D barcodes (e.g. code128) and one separate assembly for each 2D Symbology
(PDF417, Datamatrix, QRCode, Aztec ...). Let us know in case the symbology you
are looking for is not available in the WPF directory.
These assemblies can be used in this way:
- Add the reference to our assembly in your project
- the result will look like this
- In the XAML file of your project add one of these
namespace declarations:
xmlns:qrl="clr-namespace:J4L.QRCode.WPF;assembly=J4LQRCode"
xmlns:dm="clr-namespace:J4L.Datamatrix.WPF;assembly=J4LDatamatrix"
xmlns:pdf417="clr-namespace:J4L.PDF417.WPF;assembly=J4LPDF417"
xmlns:aztec="clr-namespace:J4L.Aztec.WPF;assembly=J4LAztec"
xmlns:j4l1d="clr-namespace:J4L.BC1D.WPF;assembly=J4L1D"
and add the one of the barcode canvas to your window:
<dm:Datamatrix
x:Name="canvas1"
Code="This is a Datamatrix"
Encoding="0"
Background="white"
BarForeColor="red"
Height="115"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="133" />
<qr:QRCode
x:Name="canvas1"
ModuleSize="3"
Code="This is a QRCode"
Encoding="0"
ErrorCorrectionLevel="0"
Background="white"
BarForeColor="red"
Height="115"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="133" />
<aztec:RAztec
x:Name="canvas1"
Code="This is a Aztec"
Encoding="1"
Background="white"
BarForeColor="red"
Height="115"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="133" />
<pdf417:PDF417
x:Name="canvas1"
Code="This is a PDF417"
PDFMode="0" Background="white"
PDFForeColor="red" Height="115"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="133" />
<j4l1d:BarCode
x:Name="canvas1"
Data="001234567890"
BarTypeName="CODE128"
Xsize="1"
Nsize="2"
BarHeight="40"
BarForeColor="Blue"
BartopMargin="30"
BarDrawText="true"
BarFontSize="14"
Background="white"
Margin="0,0,38,127" />
|