New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a barcode control that can display various types of 1D and 2D barcodes.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadBarcode : RadLayout

Inheritance: objectRadLayoutRadBarcode

Inherited Members RadLayout.CreateLayoutManager()

Constructors

Initializes a new instance of the RadBarcode class.

C#
public RadBarcode()

Fields

ErrorMessageProperty

BindableProperty

Identifies the ErrorMessage property.

C#
public static readonly BindableProperty ErrorMessageProperty

ForegroundColorProperty

BindableProperty

Identifies the ForegroundColor property.

C#
public static readonly BindableProperty ForegroundColorProperty

IsValidProperty

BindableProperty

Identifies the IsValid property.

C#
public static readonly BindableProperty IsValidProperty

SymbologyProperty

BindableProperty

Identifies the Symbology property.

C#
public static readonly BindableProperty SymbologyProperty

ValueProperty

BindableProperty

Identifies the Value property.

C#
public static readonly BindableProperty ValueProperty

Properties

Gets or sets the error message when the barcode value is invalid.

C#
public string ErrorMessage { get; set; }
Property Value:

The error message describing why the barcode is invalid, or null if valid.

Gets or sets the foreground color of the barcode.

C#
public Color ForegroundColor { get; set; }
Property Value:

The Color used for the barcode foreground elements.

Gets or sets a value indicating whether the current barcode value is valid.

C#
public bool IsValid { get; set; }
Property Value:

true if the barcode value is valid; otherwise, false.

Gets or sets the symbology used for barcode generation.

C#
public SymbologyBase Symbology { get; set; }
Property Value:

The SymbologyBase implementation that defines the barcode type and settings.

Gets or sets the value to be encoded in the barcode.

C#
public string Value { get; set; }
Property Value:

The string value to encode in the barcode.

Methods

C#
protected override void OnBindingContextChanged()
C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Called when a property of the symbology changes. Suitable for performing necessary updates based on the changes.

C#
protected virtual void OnSymbologyPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters:senderobject

The source of the event.

ePropertyChangedEventArgs

The event arguments containing property change information.