Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfSegmentItem

    Show / Hide Table of Contents

    Class SfSegmentItem

    Represents a single element in SfSegmentedControl control. It contains the properties to configure title and content region.

    Inheritance
    System.Object
    SfSegmentItem
    Namespace: Syncfusion.XForms.Buttons
    Assembly: Syncfusion.Buttons.XForms.dll
    Syntax
    public class SfSegmentItem : Element, IThemeElement

    Constructors

    SfSegmentItem()

    Initializes a new instance of the SfSegmentItem class.

    Declaration
    public SfSegmentItem()

    Fields

    BackgroundColorProperty

    Identifies the BackgroundColor bindable property. This property can be used to change the background color value for segment item.

    Declaration
    public static readonly BindableProperty BackgroundColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontAttributesProperty

    Identifies the FontAttributes bindable property. This property can be used to change the font attribute of segment item text.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontColorProperty

    Identifies the FontColor bindable property. This property can be used to change the text color of segment item text.

    Declaration
    public static readonly BindableProperty FontColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontFamilyProperty

    Identifies the FontFamily bindable property. This property can be used to change the font family of segment item text.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontIconFontColorProperty

    Identifies the FontIconFontColor bindable property. This property can be used to change the text color for font icon for segment item.

    Declaration
    public static readonly BindableProperty FontIconFontColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontIconFontFamilyProperty

    Identifies the FontIconFontFamily bindable property. This property can be used to change the font family of the icon in segment item.

    Declaration
    public static readonly BindableProperty FontIconFontFamilyProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontIconFontSizeProperty

    Identifies the FontIconFontSize bindable property. This property can be used to change the font size of icon text for segment item.

    Declaration
    public static readonly BindableProperty FontIconFontSizeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    FontSizeProperty

    Identifies the FontSize bindable property. This property can be used to change the font size of segment item text.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    IconFontProperty

    Identifies the IconFont bindable property. This property can be used to change the font for the segment item icon.

    Declaration
    public static readonly BindableProperty IconFontProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    IsEnabledProperty

    Identifies the IsEnabled bindable property. It indicates whether the segment item is enabled or not. The default value of the IsEnabled property is true.

    Declaration
    public static readonly BindableProperty IsEnabledProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    SelectionBackgroundColorProperty

    Identifies the SelectionBackgroundColor bindable property. This property can be used to change the background color value for the selected segment item.

    Declaration
    public static readonly BindableProperty SelectionBackgroundColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    SelectionTextColorProperty

    Identifies the SelectionTextColor bindable property. This property can be used to change the text color for the selected segment item.

    Declaration
    public static readonly BindableProperty SelectionTextColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    TextProperty

    Identifies the Text bindable property. This property can be used to set text input to the segment item.

    Declaration
    public static readonly BindableProperty TextProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    BackgroundColor

    Gets or sets the value of the BackgroundColor. This property can be used to change the background color value for segment item.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    FontAttributes

    Gets or sets the value of the FontAttributes. This property can be used to change the font attribute of segment item text.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.FontAttributes

    FontColor

    Gets or sets the value of FontColor. This property can be used to change the text color of segment item text.

    Declaration
    public Color FontColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    FontFamily

    Gets or sets the value of the FontFamily. This property can be used to change the font family of segment item text.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontIconFontColor

    Gets or sets the value of FontIconFontColor. This property can be used to change the text color for font icon for segment item.

    Declaration
    public Color FontIconFontColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    FontIconFontFamily

    Gets or sets the value of the FontIconFontFamily. This property can be used to change the font family of the icon in segment item.

    Declaration
    public string FontIconFontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontIconFontSize

    Gets or sets the value of FontIconFontSize. This property can be used to change the font size of icon text for segment item.

    Declaration
    public double FontIconFontSize { get; set; }
    Property Value
    Type Description
    System.Double

    FontSize

    Gets or sets the value of the FontSize. This property can be used to change the font size of segment item text.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    IconFont

    Gets or sets the value of the IconFont. This property can be used to change the font for the segment item icon.

    Declaration
    public string IconFont { get; set; }
    Property Value
    Type Description
    System.String

    IsEnabled

    Gets or sets a value indicating whether the segment item is enabled or not. The default value of the IsEnabled property is true.

    Declaration
    public bool IsEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    SelectionBackgroundColor

    Gets or sets the value of SelectionBackgroundColor. This property can be used to change the background color value for the selected segment item.

    Declaration
    public Color SelectionBackgroundColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    SelectionTextColor

    Gets or sets the value of SelectionTextColor. This property can be used to change the text color for the selected segment item.

    Declaration
    public Color SelectionTextColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    Text

    Gets or sets the value of text. This property can be used to set text input to segment item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved