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: Controls.Input.OpenSilver.dll
Syntax
public interface ISelectionAdapter
Properties
| Improve this Doc View SourceItemsSource
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. |
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 SourceCreateAutomationPeer()
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. |
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 SourceCancel
Occurs when a selection has been canceled.
Declaration
event RoutedEventHandler Cancel
Event Type
Type | Description |
---|---|
RoutedEventHandler |
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 |
SelectionChanged
Occurs when the SelectedItem property value changes.
Declaration
event SelectionChangedEventHandler SelectionChanged
Event Type
Type | Description |
---|---|
SelectionChangedEventHandler |