Summary
Defines an item collection, selection members, and key handling for the
selection adapter contained in the drop-down portion of an
AutoCompleteBox
control.
- Namespace
- Avalonia
.Controls .Utils - Implementing Types
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 |
Occurs when a selection has been canceled.
|
Commit | EventHandler |
Occurs when a selected item is not cancelled and is committed as the
selected item.
|
SelectionChanged | EventHandler |
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 |
void |
Provides handling for the
KeyDown event that occurs
when a key is pressed while the drop-down portion of the
AutoCompleteBox has focus.
|