Skip to main content

ISelectionAdapter Interface

Defines an item collection, selection members, and key handling for the selection adapter contained in the drop-down portion of an AutoCompleteBox control.

Definition

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

public interface ISelectionAdapter
View Source

Properties

ItemsSourceGets or sets a collection that is used to generate content for the selection adapter.
SelectedItemGets or sets the selected item.

Methods

HandleKeyDown(KeyEventArgs)Provides handling for the KeyDown event that occurs when a key is pressed while the drop-down portion of the AutoCompleteBox has focus.

Events

CancelOccurs when a selection has been canceled.
CommitOccurs when a selected item is not cancelled and is committed as the selected item.
SelectionChangedOccurs when the SelectedItem property value changes.

See Also

Reference

Avalonia.Controls.Utils Namespace