Class SfChip
Represents a Xamarin.Forms Chip control which can be added in a layout and grouped using SfChipGroup.
Implements
Inherited Members
Namespace: Syncfusion.XForms.Buttons
Assembly: Syncfusion.Buttons.XForms.dll
Syntax
public class SfChip : SfButton, IDisposable, IParentThemeElement, IThemeElement
Constructors
SfChip()
Initializes a new instance of the SfChip class. This is a constructor of the SfChip class.
Declaration
public SfChip()
Fields
CloseButtonColorProperty
Gets or sets the value of CloseButtonColor. This property can be used to change the color of the close button. This is a bindable property.
Declaration
public static readonly BindableProperty CloseButtonColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
CornerRadiusProperty
Gets or sets the value of CornerRadius. This property can be used to change the corner radius. This is a bindable property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SelectionIndicatorColorProperty
Gets or sets the value of SelectionIndicatorColor. This property can be used to change the color of selection indicator. This is a bindable property.
Declaration
public static readonly BindableProperty SelectionIndicatorColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowCloseButtonProperty
Gets or sets a value that indicates whether the close button is shown or not. This is a bindable property.
Declaration
public static readonly BindableProperty ShowCloseButtonProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowSelectionIndicatorProperty
Gets or sets a value that indicates whether the selection indicator is shown or not. This is a bindable property.
Declaration
public static readonly BindableProperty ShowSelectionIndicatorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
CloseButtonColor
Gets or sets the value of CloseButtonColor. This property can be used to change the color of the close button.
Declaration
public Color CloseButtonColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
CornerRadius
Gets or sets the value of corner radius.This property can be used to customize the corners of SfBorder control.
Declaration
public Thickness CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Thickness | The corner radius. |
SelectionIndicatorColor
Gets or sets the value of SelectionIndicatorColor. This property can be used to change the color of selection indicator.
Declaration
public Color SelectionIndicatorColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
ShowCloseButton
Gets or sets a value indicating whether the close button is shown or not. This property can be used to change the visiblity of the close button.
Declaration
public bool ShowCloseButton { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowSelectionIndicator
Gets or sets a value indicating whether selection indicator is shown or not in the Chip. This property can be used to change the visiblity of the selection indicator.
Declaration
public bool ShowSelectionIndicator { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose()
Releases all resources used by the SfChip object. Using this method, all the dead objects are removed.
Declaration
public void Dispose()
Dispose(Boolean)
Disposing all the resources used by the SfChip object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | If set to |
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |