ISelectionAdapter Interface

Summary

Defines an item collection, selection members, and key handling for the selection adapter contained in the drop-down portion of an AutoCompleteBox control.
graph BT Type["ISelectionAdapter"] class Type type-node Implementing0["SelectingItemsControlSelectionAdapter"]-.->Type click Implementing0 "/api/Avalonia.Controls.Utils/SelectingItemsControlSelectionAdapter"

Syntax

public interface ISelectionAdapter

Events

Name Type Summary
Cancel EventHandler<RoutedEventArgs>
Occurs when a selection has been canceled.
Commit EventHandler<RoutedEventArgs>
Occurs when a selected item is not cancelled and is committed as the selected item.
SelectionChanged EventHandler<SelectionChangedEventArgs>
Occurs when the SelectedItem property value changes.

Properties

Name Value Summary
Items IEnumerable
Gets or sets a collection that is used to generate content for the selection adapter.
SelectedItem object
Gets or sets the selected item.

Methods

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