BarCodeEdit Class
Allows you to display various barcodes.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v18.2.dll
Declaration
public class BarCodeEdit :
BaseEdit,
IFullBarCodeData,
IBarCodeData,
IImageExportSettings,
IExportSettings
Remarks
This example demonstrates a BarCode with the QRCode symbology.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-qrcode-barcodecontrol-t174016.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" x:Class="BarCodeEdit.MainWindow"
Title="MainWindow" Height="300" Width="250">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="242" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<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>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BarCodeEdit class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
Inheritance
Extension Methods
See Also