Class
Badge

Represents the additional marker over the content of RadBadgeView.

Definition

Namespace:Telerik.Maui.Controls.BadgeView

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class Badge : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewBadge

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()

Constructors

Badge()

Initializes a new instance of the Badge class.

Declaration

cs-api-definition
public Badge()

Fields

AnimationDurationProperty

Identifies the AnimationDuration property.

Declaration

cs-api-definition
public static readonly BindableProperty AnimationDurationProperty

Field Value

BindableProperty

AnimationEasingProperty

Identifies the AnimationEasing property.

Declaration

cs-api-definition
public static readonly BindableProperty AnimationEasingProperty

Field Value

BindableProperty

AnimationTypeProperty

Identifies the AnimationType property.

Declaration

cs-api-definition
public static readonly BindableProperty AnimationTypeProperty

Field Value

BindableProperty

BackgroundColorProperty

Identifies the BackgroundColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundColorProperty

Field Value

BindableProperty

BorderColorProperty

Identifies the BorderColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderColorProperty

Field Value

BindableProperty

BorderThicknessProperty

Identifies the BorderThickness property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

ControlTemplateProperty

Identifies the ControlTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ControlTemplateProperty

Field Value

BindableProperty

CornerRadiusProperty

Identifies the CornerRadius property.

Declaration

cs-api-definition
public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

FontAttributesProperty

Identifies the FontAttributes property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontFamilyProperty

Identifies the FontFamily property.

Declaration

cs-api-definition
public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Identifies the FontSize property.

Declaration

cs-api-definition
public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

MinimumHeightRequestProperty

Identifies the MinimumHeightRequest property.

Declaration

cs-api-definition
public static readonly BindableProperty MinimumHeightRequestProperty

Field Value

BindableProperty

MinimumWidthRequestProperty

Identifies the MinimumWidthRequest property.

Declaration

cs-api-definition
public static readonly BindableProperty MinimumWidthRequestProperty

Field Value

BindableProperty

StartAnimationCommandProperty

Identifies the StartAnimationCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty StartAnimationCommandProperty

Field Value

BindableProperty

TextColorProperty

Identifies the TextColor property.

Declaration

cs-api-definition
public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextMarginProperty

Identifies the TextMargin property.

Declaration

cs-api-definition
public static readonly BindableProperty TextMarginProperty

Field Value

BindableProperty

TextProperty

Identifies the Text property.

Declaration

cs-api-definition
public static readonly BindableProperty TextProperty

Field Value

BindableProperty

Properties

AnimationDuration

Gets or sets the duration of Animation for badge in milliseconds.

Declaration

cs-api-definition
public int AnimationDuration { get; set; }

Property Value

int

AnimationEasing

Gets or sets the Easing for the animation of badge.

Declaration

cs-api-definition
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }

Property Value

Easing

AnimationType

Gets or sets the type of BadgeAnimationType for badge.

Declaration

cs-api-definition
public BadgeAnimationType AnimationType { get; set; }

Property Value

BadgeAnimationType

BackgroundColor

Gets or sets the background color of badge.

Declaration

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

Property Value

Color

BorderColor

Gets or sets the border color of badge.

Declaration

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

Property Value

Color

BorderThickness

Gets or sets the border thickness of badge.

Declaration

cs-api-definition
public Thickness BorderThickness { get; set; }

Property Value

Thickness

ControlTemplate

Gets or sets the ControlTemplate of the view.

Declaration

cs-api-definition
public ControlTemplate ControlTemplate { get; set; }

Property Value

ControlTemplate

CornerRadius

Gets or sets the corner radius of badge.

Declaration

cs-api-definition
public Thickness CornerRadius { get; set; }

Property Value

Thickness

FontAttributes

Gets or sets the text font attributes of badge.

Declaration

cs-api-definition
public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontFamily

Gets or sets the text font family of badge.

Declaration

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

Property Value

string

FontSize

Gets or sets the text font size of badge.

Declaration

cs-api-definition
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

MinimumHeightRequest

Gets or sets the minimum height of the control.

Declaration

cs-api-definition
public double MinimumHeightRequest { get; set; }

Property Value

double

MinimumWidthRequest

Gets or sets the minimum width of the control.

Declaration

cs-api-definition
public double MinimumWidthRequest { get; set; }

Property Value

double

StartAnimationCommand

Gets the command that starts the badge animation.

Declaration

cs-api-definition
public ICommand StartAnimationCommand { get; }

Property Value

ICommand

Text

Gets or sets the text of badge.

Declaration

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

Property Value

string

TextColor

Gets or sets the text color of badge.

Declaration

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

Property Value

Color

TextMargin

Gets or sets the text margin of badge.

Declaration

cs-api-definition
public Thickness TextMargin { get; set; }

Property Value

Thickness

Methods

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnHandlerChanged()

Called when the handler changes.

Declaration

cs-api-definition
protected override void OnHandlerChanged()

Overrides RadContentView.OnHandlerChanged()

OnPropertyChanged(string)

Declaration

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

Parameters

propertyName

string

StartBadgeAnimation()

Starts the badge animation based on the configured animation type and settings.

Declaration

cs-api-definition
public void StartBadgeAnimation()