This example uses the WPF BarCodeEdit control to generate a QR code based on user input.
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>
(you will be redirected to DevExpress.com to submit your response)