Class
RadBarcode

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:

cs-api-definition
public class RadBarcode : RadLayout

Inheritance: objectRadLayoutRadBarcode

Inherited Members RadLayout.CreateLayoutManager()

Constructors

RadBarcode()

Initializes a new instance of the RadBarcode class.

Declaration

cs-api-definition
public RadBarcode()

Fields

ErrorMessageProperty

Identifies the ErrorMessage property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorMessageProperty

Field Value

BindableProperty

ForegroundColorProperty

Identifies the ForegroundColor property.

Declaration

cs-api-definition
public static readonly BindableProperty ForegroundColorProperty

Field Value

BindableProperty

IsValidProperty

Identifies the IsValid property.

Declaration

cs-api-definition
public static readonly BindableProperty IsValidProperty

Field Value

BindableProperty

SymbologyProperty

Identifies the Symbology property.

Declaration

cs-api-definition
public static readonly BindableProperty SymbologyProperty

Field Value

BindableProperty

ValueProperty

Identifies the Value property.

Declaration

cs-api-definition
public static readonly BindableProperty ValueProperty

Field Value

BindableProperty

Properties

ErrorMessage

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

Declaration

cs-api-definition
public string ErrorMessage { get; set; }

Property Value

string

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

ForegroundColor

Gets or sets the foreground color of the barcode.

Declaration

cs-api-definition
public Color ForegroundColor { get; set; }

Property Value

Color

The Color used for the barcode foreground elements.

IsValid

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

Declaration

cs-api-definition
public bool IsValid { get; set; }

Property Value

bool

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

Symbology

Gets or sets the symbology used for barcode generation.

Declaration

cs-api-definition
public SymbologyBase Symbology { get; set; }

Property Value

SymbologyBase

The SymbologyBase implementation that defines the barcode type and settings.

Value

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

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

The string value to encode in the barcode.

Methods

OnBindingContextChanged()

Declaration

cs-api-definition
protected override void OnBindingContextChanged()

OnPropertyChanged(string)

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

OnSymbologyPropertyChanged(object, PropertyChangedEventArgs)

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

Declaration

cs-api-definition
protected virtual void OnSymbologyPropertyChanged(object sender, PropertyChangedEventArgs e)

Parameters

sender

object

The source of the event.

e

PropertyChangedEventArgs

The event arguments containing property change information.