Telerik blogs
In the Q1 2013 release we decided to include a bar code generator. Its features and API are on par with our Silverlight bar code components and are used in exactly the same way, no learning is needed if you're already familiar with it.

RadBarcode is an umbrella name for several bar code components that generate different types of bar codes. The currently supported barcode types are:
QR
UPCA
UPCE
UPCSupplement2
UPCSupplement5
POSTNET
PDF417
MSI
EAN8
EAN13
Codabar
93
93 Extended
39
39 Extended
25 Non-Interleaved
25 Interleaved
128
128A
128B
128C
11
Using RadBarcode in your apps is as simple as setting the Text property of your barcode of choice. For example here is how the Codabar bar code for the value “123” is generated with RadBarcodeCodebar:
<Border Background="White"
    VerticalAlignment="Center">
    <telerikDataViz:RadBarcodeCodebar Width="480"
                         Height="200"
                         Margin="25"
                         Text="123"/>
</Border>

And here’s the result:

All bar codes work like this with more complex ones defining more properties. For example the QR code generator has properties for error correction level, version, ECI mode, FNC1 mode, code mode and more.

<Border Background="White"
     VerticalAlignment="Center">
    <telerikDataViz:RadBarcodeQR Width="300"
                      Height="300"
                      Version="7"
                  Text="John Doe john@gmail.com"/>
</Border>



Notice the 7 value of the Version property. A higher version of the QR code allows more information to be encoded.

We decided to add the barcode generators for the Windows Phone 8 release because now they have a pretty clear application - the windows phone wallet. The wallet extensibility APIs that Microsoft provides allow users to embed logos and other images, including barcodes, to the information contained in the wallet. In the next blog post, we'll explore a complete example of how to use RadBarcode to encode information in the Windows Phone wallet.

As always be sure to check out the examples in our Examples app and tell us what you think about the barcode (or its examples) in our forums.
Happy coding.


About the Author

Viktor Skarlatov

Software Developer,
Windows Phone Team

Comments

Comments are disabled in preview mode.