ISelectable Interface

Summary

Interface for objects that are selectable.
graph BT Type["ISelectable"] class Type type-node Implementing0["MenuItem"]-.->Type click Implementing0 "/api/Avalonia.Controls/MenuItem" Implementing1["ComboBoxItem"]-.->Type click Implementing1 "/api/Avalonia.Controls/ComboBoxItem" Implementing2["TabItem"]-.->Type click Implementing2 "/api/Avalonia.Controls/TabItem" Implementing3["ListBoxItem"]-.->Type click Implementing3 "/api/Avalonia.Controls/ListBoxItem" Implementing4["TreeViewItem"]-.->Type click Implementing4 "/api/Avalonia.Controls/TreeViewItem" Implementing5["TabStripItem"]-.->Type click Implementing5 "/api/Avalonia.Controls.Primitives/TabStripItem" Implementing6["DropDownItem"]-.->Type click Implementing6 "/api/Avalonia.Controls/DropDownItem"

Syntax

public interface ISelectable

Remarks

Controls such as SelectingItemsControl use this interface to indicate the selected control in a list. If changing the control's IsSelected property should update the selection in a SelectingItemsControl or equivalent, then the control should raise the IsSelectedChangedEvent.

Properties

Name Value Summary
IsSelected bool
Gets or sets the selected state of the object.