Skip to content

DevExpress-Examples/wpf-barcodeedit-generate-qr-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF BarCode Editor - Create a QR Code Generator

This example uses the WPF BarCodeEdit control to generate a QR code based on user input.

WPF BarCodeEdit, DevExpress

Implementation Details

The BarCodeEdit control can display 27 types of barcodes. Use the BarCodeEdit.StyleSettings property to specify the barcode type.

The Barcode editor's EditValue is bound to the Text property of the text box to automatically generate a QR code as the user types:

<dxe:BarCodeEdit Grid.Row="0" AutoModule="True"
                    ShowText="False"
                    EditValue="{Binding Path=Text,ElementName=textBox}" >
    <dxe:BarCodeEdit.StyleSettings>
        <dxe:QRCodeStyleSettings CompactionMode="Byte" />
    </dxe:BarCodeEdit.StyleSettings>
</dxe:BarCodeEdit>
<TextBox Grid.Row="1" Name="textBox">
    DevExpress
</TextBox>

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)