Skip to main content

SelectedIndex Property

Gets or sets the index of the selected tab/panel/page (subview).

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public int SelectedIndex { get; set; }

Property Value​

Int32

Remarks​

When using the default control theme, this property is designed to be used with the ColorViewTab enum. The ColorViewTab enum defines the index values of each of the three standard tabs. Use like SelectedIndex = (int)ColorViewTab.Palette.

See Also​

Reference​

ColorView Class
Avalonia.Controls Namespace