SelectorSelectionAdapter Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control.
Inheritance Hierarchy
System.Object
System.Windows.Controls.SelectorSelectionAdapter
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.Input (in System.Windows.Controls.Input.dll)
Syntax
'Declaration
Public Class SelectorSelectionAdapter _
Implements ISelectionAdapter
public class SelectorSelectionAdapter : ISelectionAdapter
The SelectorSelectionAdapter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SelectorSelectionAdapter() | Initializes a new instance of the SelectorSelectionAdapter class. | |
SelectorSelectionAdapter(Selector) | Initializes a new instance of the SelectorSelectionAdapter class with the specified Selector control. |
Top
Properties
Name | Description | |
---|---|---|
ItemsSource | Gets or sets a collection that is used to generate the content of the selection adapter. | |
SelectedItem | Gets or sets the selected item of the selection adapter. | |
SelectorControl | Gets or sets the underlying Selector control. |
Top
Methods
Name | Description | |
---|---|---|
CreateAutomationPeer | Returns an automation peer for the underlying Selector control, for use by the Silverlight automation infrastructure. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleKeyDown | Provides handling for the KeyDown event that occurs when a key is pressed while the drop-down portion of the AutoCompleteBox has focus. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCancel | Raises the Cancel event. | |
OnCommit | Raises the Commit event. | |
SelectedIndexDecrement | Decrements the SelectedIndex property of the underlying Selector control. | |
SelectedIndexIncrement | Increments the SelectedIndex property of the underlying Selector control. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
Cancel | Occurs when a selection is canceled before it is committed. | |
Commit | Occurs when an item is selected and is committed to the underlying Selector control. | |
SelectionChanged | Occurs when the SelectedItem property value changes. |
Top
Remarks
This class wraps a Selector control and implements the ISelectionAdapter interface. A selection adapter is a part required by the AutoCompleteBox control template. The SelectorSelectionAdapter provides custom behavior for the AutoCompleteBox control, such as an item collection, selection members, and key handling.
You can create a new template for the AutoCompleteBox and provide your own ISelectionAdapter to provide custom selection functionality without deriving from the AutoCompleteBox class.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.