Show / Hide Table of Contents

Interface ISelectionAdapter

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

Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.dll
Syntax
public interface ISelectionAdapter

Properties

| Improve this Doc View Source

ItemsSource

Gets or sets a collection that is used to generate content for the selection adapter.

Declaration
IEnumerable ItemsSource { get; set; }
Property Value
Type Description
System.Collections.IEnumerable

The collection that is used to generate content for the selection adapter.

| Improve this Doc View Source

SelectedItem

Gets or sets the selected item.

Declaration
object SelectedItem { get; set; }
Property Value
Type Description
System.Object

The currently selected item.

Methods

| Improve this Doc View Source

CreateAutomationPeer()

Returns an automation peer for the selection adapter, for use by the Silverlight automation infrastructure.

Declaration
AutomationPeer CreateAutomationPeer()
Returns
Type Description
AutomationPeer

An automation peer for the selection adapter, if one is available; otherwise, null.

| Improve this Doc View Source

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.

Declaration
void HandleKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e

A KeyEventArgs that contains data about the KeyDown event.

Events

| Improve this Doc View Source

Cancel

Occurs when a selection has been canceled.

Declaration
event RoutedEventHandler Cancel
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

Commit

Occurs when a selected item is not cancelled and is committed as the selected item.

Declaration
event RoutedEventHandler Commit
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

SelectionChanged

Occurs when the SelectedItem property value changes.

Declaration
event SelectionChangedEventHandler SelectionChanged
Event Type
Type Description
SelectionChangedEventHandler
  • Improve this Doc
  • View Source