Skip to content

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

NameSummary
.ctor

Properties

NameSummary
SelectionStateGets or sets the shared segmented selection state.
SelectedKeyGets or sets the selected segment key.
SelectionChangedCommandGets or sets the command invoked when a segment is selected.

Fields

NameSummary
static SelectionStatePropertyProperty for [SelectionState](#
static SelectedKeyPropertyProperty for [SelectedKey](#
static SelectionChangedCommandPropertyProperty for [SelectionChangedCommand](#

Methods

NameSummary
OnPropertyChangedCalled when a avalonia property changes on the object.
Inherited members