New to Telerik UI for WPFStart a free 30-day trial

This control decodes images representing barcodes, such as Code 128, EAN8, etc.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TelerikToolboxCategory("Data Visualization")]
public class RadBarcodeReader : Control

Inheritance: objectRadBarcodeReader

Constructors

Initializes a new instance of the RadBarcodeReader class.

C#
public RadBarcodeReader()

Fields

DecodeButtonTextProperty

DependencyProperty

Identifies the DecodeButtonText dependency property.

C#
public static readonly DependencyProperty DecodeButtonTextProperty

DecodeTypesProperty

DependencyProperty

Identifies the DecodeTypes dependency property.

C#
public static readonly DependencyProperty DecodeTypesProperty

OpenButtonTextProperty

DependencyProperty

Identifies the OpenButtonText dependency property.

C#
public static readonly DependencyProperty OpenButtonTextProperty

ResultTextProperty

DependencyProperty

Identifies the ResultText dependency property.

C#
public static readonly DependencyProperty ResultTextProperty

Properties

Gets or sets the text of the decode button.

C#
public string DecodeButtonText { get; set; }

Gets or sets the types of barcodes the reader will try to decode.

C#
public BarcodeType DecodeTypes { get; set; }

Gets or sets the text of the open File button.

C#
public string OpenButtonText { get; set; }

Gets or sets the text of the Result area.

C#
public string ResultText { get; set; }

Methods

Called when the Text property is changed.

C#
protected static void DecodeTextChanged(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters:sourceDependencyObject

The source.

eventArgsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides the OnApplyTemplate method.

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the Text property is changed.

C#
protected static void OpenTextChanged(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters:sourceDependencyObject

The source.

eventArgsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the text in the result area is updated.

C#
protected static void ResultTextChanged(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)
Parameters:sourceDependencyObject

The source.

eventArgsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.