ISelectable Interface

Summary

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

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.