SegmentedControl class
이 콘텐츠는 아직 번역되지 않았습니다.
A horizontal strip of mutually exclusive segments (iOS UISegmentedControl / WinUI Segmented style). Single selection highlights the chosen segment with the accent color. Use for a small fixed set of options (view-mode switches, filters) where a ComboBox is too indirect and a RadioButton group too large. For independent segments (toolbar / toggle cluster) use ButtonGroup.
Guide: C# Markup reference: Button
public sealed class SegmentedControl : SegmentedBase, IIndexedSelectorPublic Members
Section titled “Public Members”| name | description |
|---|---|
| SegmentedControl() | The default constructor. |
| SelectedIndex { get; set; } | Gets or sets the selected segment index (-1 means no selection). |
| SelectedItem { get; set; } | Gets the currently selected item object, or null when nothing is selected. |
| SelectedText { get; } | Gets the display text of the selected segment, or null. |
| event SelectionChanged | Occurs when the selected segment changes. |
| static readonly SelectedIndexProperty | |
| static readonly SelectedItemProperty |
See Also
Section titled “See Also”- class SegmentedBase
- interface IIndexedSelector
- namespace Aprillz.MewUI.Controls