Class SfBadgeView
Class implementation of badge view control.
Inheritance
System.Object
SfBadgeView
Namespace: Syncfusion.XForms.BadgeView
Assembly: Syncfusion.SfBadgeView.XForms.dll
Syntax
public class SfBadgeView : ContentView
Constructors
SfBadgeView()
Initializes a new instance of the SfBadgeView class.
Declaration
public SfBadgeView()
Fields
BadgeSettingsProperty
Bindable property of BadgeSetting property.
Declaration
public static readonly BindableProperty BadgeSettingsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
BadgeTextProperty
Bindable property for BadgeText property.
Declaration
public static readonly BindableProperty BadgeTextProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
BadgeSettings
Gets or sets the value for badge settings.
Declaration
public BadgeSetting BadgeSettings { get; set; }
Property Value
Type |
---|
BadgeSetting |
BadgeText
Gets or sets the value for badge text.
Declaration
public string BadgeText { get; set; }
Property Value
Type |
---|
System.String |
Methods
LayoutChildren(Double, Double, Double, Double)
This method is called to arrange the children.
Declaration
protected override void LayoutChildren(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x value. |
System.Double | y | The y value. |
System.Double | width | The width. |
System.Double | height | The height. |
OnBindingContextChanged()
Called when the binding context is changed.
Declaration
protected override void OnBindingContextChanged()
OnMeasure(Double, Double)
This method is called to measure the control.
Declaration
protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | The width. |
System.Double | heightConstraint | The height. |
Returns
Type | Description |
---|---|
Xamarin.Forms.SizeRequest | The size request. |
OnParentSet()
This method is called when the parent is set.
Declaration
protected override void OnParentSet()
OnPropertyChanged(String)
The on property changed.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name. |