Class RadSegmentedControl
Displays a list of horizontally aligned, mutually exclusive options, which can be selected by the user. Each option is a button that can display text or an image.
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class RadSegmentedControl : RadView, IRadSegmentedControl, IView, IElement, ITransform
Constructors
RadSegmentedControl()
Declaration
public RadSegmentedControl()
Fields
DisabledSegmentTextColorProperty
Identifies the DisabledSegmentTextColor property.
Declaration
public static readonly BindableProperty DisabledSegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
ItemsSourceProperty
Identifies the ItemsSource property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SegmentBackgroundColorProperty
Identifies the SegmentBackgroundColor property.
Declaration
public static readonly BindableProperty SegmentBackgroundColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SegmentTextColorProperty
Identifies the SegmentTextColor property.
Declaration
public static readonly BindableProperty SegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SelectedIndexProperty
Identifies the SelectedIndex property.
Declaration
public static readonly BindableProperty SelectedIndexProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SelectedItemProperty
Identifies the SelectedItem property.
Declaration
public static readonly BindableProperty SelectedItemProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SelectedSegmentBackgroundColorProperty
Identifies the SelectedSegmentBackgroundColor property.
Declaration
public static readonly BindableProperty SelectedSegmentBackgroundColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SelectedSegmentTextColorProperty
Identifies the SelectedSegmentTextColor property.
Declaration
public static readonly BindableProperty SelectedSegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
DisabledSegmentTextColor
Gets or sets the text color of the disabled segment.
Declaration
public Color DisabledSegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color
|
Implements
ItemsSource
Gets or sets the collection of items of the control.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable
|
Implements
SegmentBackgroundColor
Gets or sets the background color of the segment.
Declaration
public Color SegmentBackgroundColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color
|
Implements
SegmentTextColor
Gets or sets the text color of the segment.
Declaration
public Color SegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color
|
Implements
SelectedIndex
Gets or sets the index of the item to be selected.
Declaration
public int SelectedIndex { get; set; }
Property Value
System.Int32
|
Implements
SelectedItem
Gets or sets the currently selected item.
Declaration
public object SelectedItem { get; set; }
Property Value
System.Object
|
SelectedSegmentBackgroundColor
Gets or sets the background color of the selected segment.
Declaration
public Color SelectedSegmentBackgroundColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color
|
Implements
SelectedSegmentTextColor
Gets or sets the text color of the selected segment.
Declaration
public Color SelectedSegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color
|
Implements
Methods
IsSegmentEnabled(Int32)
Determines if the specified segment is enabled.
Declaration
public bool IsSegmentEnabled(int index)
Parameters
System.Int32
index
The index of the segment. |
Returns
System.Boolean
The state of the segment: True - enabled, False - disabled. |
OnHandlerChanged()
SetSegmentEnabled(Int32, Boolean)
Sets the enabled state of the specified segment.
Declaration
public void SetSegmentEnabled(int index, bool isEnabled)
Parameters
System.Int32
index
The index of the segment to enable or disable. |
System.Boolean
isEnabled
The new state of the segment: True - enabled, False - disabled. |
Events
SelectionChanged
Raised when the current selection has changed.
Declaration
public event EventHandler<ValueChangedEventArgs<int>> SelectionChanged
Event Type
System.EventHandler<ValueChangedEventArgs<System.Int32>>
|