Class SfSegmentItem
Represents an individual item used in a segmented control.
Inheritance
Namespace: Syncfusion.Maui.Buttons
Assembly: Syncfusion.Maui.Buttons.dll
Syntax
public class SfSegmentItem : Element
Constructors
SfSegmentItem()
Declaration
public SfSegmentItem()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Background dependency property. |
ImageSizeProperty
Identifies the ImageSize dependency property.
Declaration
public static readonly BindableProperty ImageSizeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ImageSize dependency property. |
ImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly BindableProperty ImageSourceProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ImageSource dependency property. |
IsEnabledProperty
Identifies the IsEnabled dependency property.
Declaration
public static readonly BindableProperty IsEnabledProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for IsEnabled dependency property. |
SelectedSegmentBackgroundProperty
Identifies the SelectedSegmentBackground dependency property.
Declaration
public static readonly BindableProperty SelectedSegmentBackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for SelectedSegmentBackground dependency property. |
SelectedSegmentTextColorProperty
Identifies the SelectedSegmentTextColor dependency property.
Declaration
public static readonly BindableProperty SelectedSegmentTextColorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for SelectedSegmentTextColor dependency property. |
TextProperty
Identifies the Text dependency property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Text dependency property. |
TextStyleProperty
Identifies the TextStyle dependency property.
Declaration
public static readonly BindableProperty TextStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for TextStyle dependency property. |
WidthProperty
Identifies the Width dependency property.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Width dependency property. |
Properties
Background
Gets or sets the background color of the segment item.
Declaration
public Brush Background { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
ImageSize
Gets or sets the image size of the segment item.
Declaration
public double ImageSize { get; set; }
Property Value
Type |
---|
System.Double |
ImageSource
Gets or sets the image displayed in the segment item.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.ImageSource |
IsEnabled
Gets or sets a value indicating whether the segment item is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
SelectedSegmentBackground
Gets or sets the background color of the segment item when it is selected.
Declaration
public Brush SelectedSegmentBackground { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
SelectedSegmentTextColor
Gets or sets the text color of the segment item when it is selected.
Declaration
public Color SelectedSegmentTextColor { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
Text
Gets or sets the text of the segment item.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextStyle
Gets or sets the text style of the segment item.
Declaration
public SegmentTextStyle TextStyle { get; set; }
Property Value
Type |
---|
SegmentTextStyle |
Width
Gets or sets the width of the segment item.
Declaration
public double Width { get; set; }
Property Value
Type |
---|
System.Double |
Methods
OnBindingContextChanged()
Invokes on the binding context of the view changed.
Declaration
protected override void OnBindingContextChanged()
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |