ClassBadge
Represents the additional marker over the content of RadBadgeView.
Definition
Namespace:Telerik.Maui.Controls.BadgeView
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class Badge : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewBadge
Implements:
Inherited Members
Constructors
Fields
AnimationDurationProperty
Identifies the AnimationDuration property.
Declaration
public static readonly BindableProperty AnimationDurationProperty
Field Value
BindableProperty
AnimationEasingProperty
Identifies the AnimationEasing property.
Declaration
public static readonly BindableProperty AnimationEasingProperty
Field Value
BindableProperty
AnimationTypeProperty
Identifies the AnimationType property.
Declaration
public static readonly BindableProperty AnimationTypeProperty
Field Value
BindableProperty
BackgroundColorProperty
Identifies the BackgroundColor property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
BindableProperty
BorderColorProperty
Identifies the BorderColor property.
Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
BindableProperty
BorderThicknessProperty
Identifies the BorderThickness property.
Declaration
public static readonly BindableProperty BorderThicknessProperty
Field Value
BindableProperty
ControlTemplateProperty
Identifies the ControlTemplate property.
Declaration
public static readonly BindableProperty ControlTemplateProperty
Field Value
BindableProperty
CornerRadiusProperty
Identifies the CornerRadius property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
BindableProperty
FontAttributesProperty
Identifies the FontAttributes property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
BindableProperty
FontFamilyProperty
Identifies the FontFamily property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
BindableProperty
FontSizeProperty
Identifies the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
BindableProperty
MinimumHeightRequestProperty
Identifies the MinimumHeightRequest property.
Declaration
public static readonly BindableProperty MinimumHeightRequestProperty
Field Value
BindableProperty
MinimumWidthRequestProperty
Identifies the MinimumWidthRequest property.
Declaration
public static readonly BindableProperty MinimumWidthRequestProperty
Field Value
BindableProperty
StartAnimationCommandProperty
Identifies the StartAnimationCommand property.
Declaration
public static readonly BindableProperty StartAnimationCommandProperty
Field Value
BindableProperty
TextColorProperty
Identifies the TextColor property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
BindableProperty
TextMarginProperty
Identifies the TextMargin property.
Declaration
public static readonly BindableProperty TextMarginProperty
Field Value
BindableProperty
TextProperty
Identifies the Text property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
BindableProperty
Properties
AnimationDuration
Gets or sets the duration of Animation for badge in milliseconds.
AnimationEasing
Gets or sets the Easing for the animation of badge.
Declaration
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }
Property Value
Easing
AnimationType
Gets or sets the type of BadgeAnimationType for badge.
Declaration
public BadgeAnimationType AnimationType { get; set; }
Property Value
BackgroundColor
Gets or sets the background color of badge.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Color
BorderColor
Gets or sets the border color of badge.
Declaration
public Color BorderColor { get; set; }
Property Value
Color
BorderThickness
Gets or sets the border thickness of badge.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Thickness
ControlTemplate
Gets or sets the ControlTemplate of the view.
Declaration
public ControlTemplate ControlTemplate { get; set; }
Property Value
ControlTemplate
CornerRadius
Gets or sets the corner radius of badge.
Declaration
public Thickness CornerRadius { get; set; }
Property Value
Thickness
FontAttributes
Gets or sets the text font attributes of badge.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
FontAttributes
FontFamily
Gets or sets the text font family of badge.
FontSize
Gets or sets the text font size of badge.
Declaration
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
MinimumHeightRequest
Gets or sets the minimum height of the control.
Declaration
public double MinimumHeightRequest { get; set; }
Property Value
MinimumWidthRequest
Gets or sets the minimum width of the control.
StartAnimationCommand
Gets the command that starts the badge animation.
Declaration
public ICommand StartAnimationCommand { get; }
Property Value
Text
Gets or sets the text of badge.
TextColor
Gets or sets the text color of badge.
Declaration
public Color TextColor { get; set; }
Property Value
Color
TextMargin
Gets or sets the text margin of badge.
Declaration
public Thickness TextMargin { get; set; }
Property Value
Thickness
Methods
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnHandlerChanged()
Called when the handler changes.
Declaration
protected override void OnHandlerChanged()
Overrides
OnPropertyChanged(string)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
StartBadgeAnimation()
Starts the badge animation based on the configured animation type and settings.
Declaration
public void StartBadgeAnimation()