ISelectable Interface

Summary

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

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.