SegmentedControl class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.SegmentedControl
Modifiers: public
Summary¶
Represents a compact single-selection control for mode switching.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class SegmentedControl
class ItemsControl
ItemsControl <|-- SegmentedControl
Inherits from: ItemsControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| SelectionState | Gets or sets the shared segmented selection state. |
| SelectedKey | Gets or sets the selected segment key. |
| SelectionChangedCommand | Gets or sets the command invoked when a segment is selected. |
Fields¶
| Name | Summary |
|---|---|
| static SelectionStateProperty | Property for [SelectionState](# |
| static SelectedKeyProperty | Property for [SelectedKey](# |
| static SelectionChangedCommandProperty | Property for [SelectionChangedCommand](# |
Methods¶
| Name | Summary |
|---|---|
| OnPropertyChanged | Called when a avalonia property changes on the object. |