menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfChip - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfChip

    Represents a Xamarin.Forms Chip control which can be added in a layout and grouped using SfChipGroup.

    Inheritance
    System.Object
    SfBorder
    SfButton
    SfChip
    Implements
    System.IDisposable
    Inherited Members
    SfBorder.BorderThickness
    SfBorder.BorderThicknessProperty
    SfBorder.DashArray
    SfBorder.DashArrayProperty
    SfBorder.HasShadow
    SfBorder.HasShadowProperty
    SfBorder.LayoutChildren(Double, Double, Double, Double)
    SfBorder.ShadowColor
    SfBorder.ShadowColorProperty
    SfButton.BackgroundColor
    SfButton.BackgroundColorProperty
    SfButton.BackgroundGradient
    SfButton.BackgroundGradientProperty
    SfButton.BackgroundImage
    SfButton.BackgroundImageProperty
    SfButton.BorderColor
    SfButton.BorderColorProperty
    SfButton.BorderWidth
    SfButton.BorderWidthProperty
    SfButton.Clicked
    SfButton.Command
    SfButton.CommandParameter
    SfButton.CommandParameterProperty
    SfButton.CommandProperty
    SfButton.Content
    SfButton.ContentProperty
    SfButton.EnableRippleEffect
    SfButton.EnableRippleEffectProperty
    SfButton.FontAttributes
    SfButton.FontAttributesProperty
    SfButton.FontFamily
    SfButton.FontFamilyProperty
    SfButton.FontSize
    SfButton.FontSizeProperty
    SfButton.HorizontalTextAlignment
    SfButton.HorizontalTextAlignmentProperty
    SfButton.Image
    SfButton.ImageAlignment
    SfButton.ImageAlignmentProperty
    SfButton.ImageProperty
    SfButton.ImageSource
    SfButton.ImageSourceProperty
    SfButton.ImageWidth
    SfButton.ImageWidthProperty
    SfButton.IsCheckable
    SfButton.IsCheckableProperty
    SfButton.IsChecked
    SfButton.IsCheckedProperty
    SfButton.OnMeasure(Double, Double)
    SfButton.Padding
    SfButton.PaddingProperty
    SfButton.PressedBackgroundColor
    SfButton.PressedBackgroundColorProperty
    SfButton.ShowIcon
    SfButton.ShowIconProperty
    SfButton.Text
    SfButton.TextColor
    SfButton.TextColorProperty
    SfButton.TextProperty
    SfButton.VerticalTextAlignment
    SfButton.VerticalTextAlignmentProperty
    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 true disposing.

    OnPropertyChanged(String)

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName
    Overrides
    SfButton.OnPropertyChanged(String)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved