Class Badge
Represents the additional marker over the content of RadBadgeView.
Inherited Members
Namespace: Telerik.XamarinForms.Primitives
Assembly: Telerik.XamarinForms.Primitives.dll
Syntax
public class Badge : RadContentView
Constructors
Badge()
Declaration
public Badge()
Fields
AnimationDurationProperty
Identifies the AnimationDuration property.
Declaration
public static readonly BindableProperty AnimationDurationProperty
Field Value
Xamarin.Forms.BindableProperty
|
AnimationEasingProperty
Identifies the AnimationEasing property.
Declaration
public static readonly BindableProperty AnimationEasingProperty
Field Value
Xamarin.Forms.BindableProperty
|
AnimationTypeProperty
Identifies the AnimationType property.
Declaration
public static readonly BindableProperty AnimationTypeProperty
Field Value
Xamarin.Forms.BindableProperty
|
BackgroundColorProperty
Identifies the BackgroundColor property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Xamarin.Forms.BindableProperty
|
BorderColorProperty
Identifies the BorderColor property.
Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
Xamarin.Forms.BindableProperty
|
BorderThicknessProperty
Identifies the BorderThickness property.
Declaration
public static readonly BindableProperty BorderThicknessProperty
Field Value
Xamarin.Forms.BindableProperty
|
ControlTemplateProperty
Identifies the ControlTemplate property.
Declaration
public static readonly BindableProperty ControlTemplateProperty
Field Value
Xamarin.Forms.BindableProperty
|
CornerRadiusProperty
Identifies the CornerRadius property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Xamarin.Forms.BindableProperty
|
FontAttributesProperty
Identifies the FontAttributes property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
Xamarin.Forms.BindableProperty
|
FontFamilyProperty
Identifies the FontFamily property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Xamarin.Forms.BindableProperty
|
FontSizeProperty
Identifies the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Xamarin.Forms.BindableProperty
|
StartAnimationCommandProperty
Identifies the StartAnimationCommand property.
Declaration
public static readonly BindableProperty StartAnimationCommandProperty
Field Value
Xamarin.Forms.BindableProperty
|
TextColorProperty
Identifies the TextColor property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
Xamarin.Forms.BindableProperty
|
TextMarginProperty
Identifies the TextMargin property.
Declaration
public static readonly BindableProperty TextMarginProperty
Field Value
Xamarin.Forms.BindableProperty
|
TextProperty
Identifies the Text property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Xamarin.Forms.BindableProperty
|
Properties
AnimationDuration
Gets or sets the duration of Animation for badge in milliseconds.
Declaration
public int AnimationDuration { get; set; }
Property Value
System.Int32
|
AnimationEasing
Gets or sets the Xamarin.Forms.Easing for the animation of badge.
Declaration
public Easing AnimationEasing { get; set; }
Property Value
Xamarin.Forms.Easing
|
AnimationType
Gets or sets the type of BadgeAnimationType for badge.
Declaration
public BadgeAnimationType AnimationType { get; set; }
Property Value
BadgeAnimationType
|
BackgroundColor
Gets or sets the background color of badge.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Xamarin.Forms.Color
|
BorderColor
Gets or sets the border color of badge.
Declaration
public Color BorderColor { get; set; }
Property Value
Xamarin.Forms.Color
|
BorderThickness
Gets or sets the border thickness of badge.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Xamarin.Forms.Thickness
|
ControlTemplate
Gets or sets the ControlTemplate of the view.
Declaration
public ControlTemplate ControlTemplate { get; set; }
Property Value
Xamarin.Forms.ControlTemplate
|
CornerRadius
Gets or sets the corner radius of badge.
Declaration
public Thickness CornerRadius { get; set; }
Property Value
Xamarin.Forms.Thickness
|
FontAttributes
Gets or sets the text font attributes of badge.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
Xamarin.Forms.FontAttributes
|
FontFamily
Gets or sets the text font family of badge.
Declaration
public string FontFamily { get; set; }
Property Value
System.String
|
FontSize
Gets or sets the text font size of badge.
Declaration
public double FontSize { get; set; }
Property Value
System.Double
|
StartAnimationCommand
Gets the command that starts the badge animation.
Declaration
public ICommand StartAnimationCommand { get; }
Property Value
System.Windows.Input.ICommand
|
Text
Gets or sets the text of badge.
Declaration
public string Text { get; set; }
Property Value
System.String
|
TextColor
Gets or sets the text color of badge.
Declaration
public Color TextColor { get; set; }
Property Value
Xamarin.Forms.Color
|
TextMargin
Gets or sets the text margin of badge.
Declaration
public Thickness TextMargin { get; set; }
Property Value
Xamarin.Forms.Thickness
|
Methods
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnMeasure(Double, Double)
Declaration
protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint)
Parameters
System.Double
widthConstraint
|
System.Double
heightConstraint
|
Returns
Xamarin.Forms.SizeRequest
|
Overrides
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.String
propertyName
|
Overrides
StartBadgeAnimation()
Declaration
public void StartBadgeAnimation()