Class SelectorSelectionAdapter
Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Controls
Assembly: Controls.Input.OpenSilver.dll
Syntax
public class SelectorSelectionAdapter : ISelectionAdapter
Constructors
| Improve this Doc View SourceSelectorSelectionAdapter()
Initializes a new instance of the SelectorSelectionAdapter class.
Declaration
public SelectorSelectionAdapter()
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 SourceItemsSource
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. |
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. |
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 SourceCreateAutomationPeer()
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. |
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. |
OnCancel()
Raises the Cancel event.
Declaration
protected virtual void OnCancel()
OnCommit()
Raises the Commit event.
Declaration
protected virtual void OnCommit()
SelectedIndexDecrement()
Decrements the SelectedIndex property of the underlying Selector control.
Declaration
protected void SelectedIndexDecrement()
SelectedIndexIncrement()
Increments the SelectedIndex property of the underlying Selector control.
Declaration
protected void SelectedIndexIncrement()
Events
| Improve this Doc View SourceCancel
Occurs when a selection is canceled before it is committed.
Declaration
public event RoutedEventHandler Cancel
Event Type
Type | Description |
---|---|
RoutedEventHandler |
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 |
SelectionChanged
Occurs when the SelectedItem property value changes.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
Type | Description |
---|---|
SelectionChangedEventHandler |