SelectingItemsControlSelectionAdapter Class

Summary

Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control.
Namespace
Avalonia.Controls.Utils
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["ISelectionAdapter"] click Interface0 "/api/Avalonia.Controls.Utils/ISelectionAdapter" Type["SelectingItemsControlSelectionAdapter"] class Type type-node

Syntax

public class SelectingItemsControlSelectionAdapter : ISelectionAdapter

Constructors

Name Summary
SelectingItemsControlSelectionAdapter() Initializes a new instance of the SelectingItemsControlSelectionAdapter class.
SelectingItemsControlSelectionAdapter(SelectingItemsControl) Initializes a new instance of the Avalonia.Controls.Utils.SelectingItemsControlSelectionAdapterr class with the specified SelectingItemsControl control.

Events

Name Type Summary
Cancel EventHandler<RoutedEventArgs>
Occurs when a selection is canceled before it is committed.
Commit EventHandler<RoutedEventArgs>
Occurs when an item is selected and is committed to the underlying SelectingItemsControl control.
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 the content of the selection adapter.
SelectedItem object
Gets or sets the selected item of the selection adapter.
SelectorControl SelectingItemsControl
Gets or sets the underlying SelectingItemsControl control.

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.
OnCancel() void
Raises the Cancel event.
OnCommit() void
Raises the Commit event.
SelectedIndexDecrement() void
Decrements the SelectedIndex property of the underlying SelectingItemsControl control.
SelectedIndexIncrement() void
Increments the SelectedIndex property of the underlying SelectingItemsControl control.