ClassRadBarcode
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:
public class RadBarcode : RadLayout
Inheritance: objectRadLayoutRadBarcode
Inherited Members
Constructors
RadBarcode()
Initializes a new instance of the RadBarcode class.
Declaration
public RadBarcode()
Fields
ErrorMessageProperty
Identifies the ErrorMessage property.
Declaration
public static readonly BindableProperty ErrorMessageProperty
Field Value
BindableProperty
ForegroundColorProperty
Identifies the ForegroundColor property.
Declaration
public static readonly BindableProperty ForegroundColorProperty
Field Value
BindableProperty
IsValidProperty
Identifies the IsValid property.
Declaration
public static readonly BindableProperty IsValidProperty
Field Value
BindableProperty
SymbologyProperty
Identifies the Symbology property.
Declaration
public static readonly BindableProperty SymbologyProperty
Field Value
BindableProperty
ValueProperty
Identifies the Value property.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
BindableProperty
Properties
ErrorMessage
Gets or sets the error message when the barcode value is invalid.
Declaration
public string ErrorMessage { get; set; }
Property Value
The error message describing why the barcode is invalid, or null if valid.
ForegroundColor
Gets or sets the foreground color of the barcode.
Declaration
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
public bool IsValid { get; set; }
Property Value
true
if the barcode value is valid; otherwise, false
.
Symbology
Gets or sets the symbology used for barcode generation.
Declaration
public SymbologyBase Symbology { get; set; }
Property Value
The SymbologyBase implementation that defines the barcode type and settings.
Methods
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()
OnPropertyChanged(string)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
OnSymbologyPropertyChanged(object, PropertyChangedEventArgs)
Called when a property of the symbology changes. Suitable for performing necessary updates based on the changes.
Declaration
protected virtual void OnSymbologyPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
The source of the event.
e
The event arguments containing property change information.