Show / Hide Table of Contents

Class SelectorSelectionAdapter

Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control.

Inheritance
System.Object
SelectorSelectionAdapter
Implements
ISelectionAdapter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.dll
Syntax
public class SelectorSelectionAdapter : ISelectionAdapter

Constructors

| Improve this Doc View Source

SelectorSelectionAdapter()

Initializes a new instance of the SelectorSelectionAdapter class.

Declaration
public SelectorSelectionAdapter()
| Improve this Doc View Source

SelectorSelectionAdapter(Selector)

Initializes a new instance of the SelectorSelectionAdapter class with the specified Selector control.

Declaration
public SelectorSelectionAdapter(Selector selector)
Parameters
Type Name Description
Selector selector

The Selector control to wrap as a SelectorSelectionAdapter.

Properties

| Improve this Doc View Source

ItemsSource

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

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

The collection used to generate content for the selection adapter.

| Improve this Doc View Source

SelectedItem

Gets or sets the selected item of the selection adapter.

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

The selected item of the underlying selection adapter.

| Improve this Doc View Source

SelectorControl

Gets or sets the underlying Selector control.

Declaration
public Selector SelectorControl { get; set; }
Property Value
Type Description
Selector

The underlying Selector control.

Methods

| Improve this Doc View Source

CreateAutomationPeer()

Returns an automation peer for the underlying Selector control, for use by the Silverlight automation infrastructure.

Declaration
public AutomationPeer CreateAutomationPeer()
Returns
Type Description
AutomationPeer

An automation peer for use by the Silverlight automation infrastructure.

| 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
public void HandleKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e

A KeyEventArgs that contains data about the KeyDown event.

| Improve this Doc View Source

OnCancel()

Raises the Cancel event.

Declaration
protected virtual void OnCancel()
| Improve this Doc View Source

OnCommit()

Raises the Commit event.

Declaration
protected virtual void OnCommit()
| Improve this Doc View Source

SelectedIndexDecrement()

Decrements the SelectedIndex property of the underlying Selector control.

Declaration
protected void SelectedIndexDecrement()
| Improve this Doc View Source

SelectedIndexIncrement()

Increments the SelectedIndex property of the underlying Selector control.

Declaration
protected void SelectedIndexIncrement()

Events

| Improve this Doc View Source

Cancel

Occurs when a selection is canceled before it is committed.

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

Commit

Occurs when an item is selected and is committed to the underlying Selector control.

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

SelectionChanged

Occurs when the SelectedItem property value changes.

Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
Type Description
SelectionChangedEventHandler

Implements

ISelectionAdapter
  • Improve this Doc
  • View Source