Badge
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
BindableProperty
Identifies the AnimationDuration property.
public static readonly BindableProperty AnimationDurationProperty
AnimationEasingProperty
BindableProperty
Identifies the AnimationEasing property.
public static readonly BindableProperty AnimationEasingProperty
AnimationTypeProperty
BindableProperty
Identifies the AnimationType property.
public static readonly BindableProperty AnimationTypeProperty
BackgroundColorProperty
BindableProperty
Identifies the BackgroundColor property.
public static readonly BindableProperty BackgroundColorProperty
BorderColorProperty
BindableProperty
Identifies the BorderColor property.
public static readonly BindableProperty BorderColorProperty
BorderThicknessProperty
BindableProperty
Identifies the BorderThickness property.
public static readonly BindableProperty BorderThicknessProperty
ControlTemplateProperty
BindableProperty
Identifies the ControlTemplate property.
public static readonly BindableProperty ControlTemplateProperty
CornerRadiusProperty
BindableProperty
Identifies the CornerRadius property.
public static readonly BindableProperty CornerRadiusProperty
FontAttributesProperty
BindableProperty
Identifies the FontAttributes property.
public static readonly BindableProperty FontAttributesProperty
FontFamilyProperty
BindableProperty
Identifies the FontFamily property.
public static readonly BindableProperty FontFamilyProperty
FontSizeProperty
BindableProperty
Identifies the FontSize property.
public static readonly BindableProperty FontSizeProperty
MinimumHeightRequestProperty
BindableProperty
Identifies the MinimumHeightRequest property.
public static readonly BindableProperty MinimumHeightRequestProperty
MinimumWidthRequestProperty
BindableProperty
Identifies the MinimumWidthRequest property.
public static readonly BindableProperty MinimumWidthRequestProperty
StartAnimationCommandProperty
BindableProperty
Identifies the StartAnimationCommand property.
public static readonly BindableProperty StartAnimationCommandProperty
TextColorProperty
BindableProperty
Identifies the TextColor property.
public static readonly BindableProperty TextColorProperty
TextMarginProperty
BindableProperty
Identifies the TextMargin property.
public static readonly BindableProperty TextMarginProperty
TextProperty
BindableProperty
Identifies the Text property.
public static readonly BindableProperty TextProperty
Properties
Gets or sets the duration of Animation for badge in milliseconds.
public int AnimationDuration { get; set; }
AnimationEasing
Easing
Gets or sets the Easing for the animation of badge.
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }
Gets or sets the type of BadgeAnimationType for badge.
public BadgeAnimationType AnimationType { get; set; }
BackgroundColor
Color
Gets or sets the background color of badge.
public Color BackgroundColor { get; set; }
BorderColor
Color
Gets or sets the border color of badge.
public Color BorderColor { get; set; }
BorderThickness
Thickness
Gets or sets the border thickness of badge.
public Thickness BorderThickness { get; set; }
ControlTemplate
ControlTemplate
Gets or sets the ControlTemplate of the view.
public ControlTemplate ControlTemplate { get; set; }
CornerRadius
Thickness
Gets or sets the corner radius of badge.
public Thickness CornerRadius { get; set; }
FontAttributes
FontAttributes
Gets or sets the text font attributes of badge.
public FontAttributes FontAttributes { get; set; }
Gets or sets the text font family of badge.
public string FontFamily { get; set; }
Gets or sets the text font size of badge.
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Gets or sets the minimum height of the control.
public double MinimumHeightRequest { get; set; }
Gets or sets the minimum width of the control.
public double MinimumWidthRequest { get; set; }
Gets the command that starts the badge animation.
public ICommand StartAnimationCommand { get; }
TextColor
Color
Gets or sets the text color of badge.
public Color TextColor { get; set; }
TextMargin
Thickness
Gets or sets the text margin of badge.
public Thickness TextMargin { get; set; }
Methods
protected override void OnApplyTemplate()
Called when the handler changes.
protected override void OnHandlerChanged()
Overrides:
protected override void OnPropertyChanged(string propertyName = null)
Starts the badge animation based on the configured animation type and settings.
public void StartBadgeAnimation()