Selector​Item​Automation​Peer Selector​Item​Automation​Peer Selector​Item​Automation​Peer Class


Exposes the items in a Selector to Microsoft UI Automation.

public : class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderpublic class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderPublic Class SelectorItemAutomationPeer Inherits ItemAutomationPeer Implements ISelectorItemAutomationPeer, ISelectionItemProvider
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties


The Windows Runtime SelectorItemAutomationPeer is created by selected item logic in SelectorAutomationPeer, not by invoking a OnCreateAutomationPeer definition on SelectorItem. Derive an automation peer from SelectorItemAutomationPeer if you are also creating a peer based on SelectorAutomationPeer and want to change the selected-item automation info.

Default peer implementation and overrides in SelectorItemAutomationPeer

SelectorItemAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.SelectorItem

SelectorItemAutomationPeer derived classes

SelectorItemAutomationPeer is the parent class for these classes:


SelectorItemAutomationPeer(Object, SelectorAutomationPeer) SelectorItemAutomationPeer(Object, SelectorAutomationPeer) SelectorItemAutomationPeer(Object, SelectorAutomationPeer)

Initializes a new instance of the SelectorItemAutomationPeer class.

public : SelectorItemAutomationPeer(PlatForm::Object item, SelectorAutomationPeer parent)public SelectorItemAutomationPeer(Object item, SelectorAutomationPeer parent)Public Sub New(item As Object, parent As SelectorAutomationPeer)
PlatForm::Object Object Object

The specific item.

SelectorAutomationPeer SelectorAutomationPeer SelectorAutomationPeer

The parent items control to create for.



IsSelected IsSelected IsSelected

Gets a value that indicates whether an item is selected.

public : PlatForm::Boolean IsSelected { get; }public bool IsSelected { get; }Public ReadOnly Property IsSelected As bool
PlatForm::Boolean bool bool

true if the element is selected; otherwise, false.


SelectionContainer SelectionContainer SelectionContainer

Gets the UI Automation provider that implements ISelectionProvider and acts as container for the calling object.

public : IRawElementProviderSimple SelectionContainer { get; }public IRawElementProviderSimple SelectionContainer { get; }Public ReadOnly Property SelectionContainer As IRawElementProviderSimple


AddToSelection() AddToSelection() AddToSelection()

Adds the current element to the collection of selected items.

public : void AddToSelection()public void AddToSelection()Public Function AddToSelection() As void

RemoveFromSelection() RemoveFromSelection() RemoveFromSelection()

Removes the current element from the collection of selected items.

public : void RemoveFromSelection()public void RemoveFromSelection()Public Function RemoveFromSelection() As void

Select() Select() Select()

Clears any existing selection and then selects the current element.

public : void Select()public void Select()Public Function Select() As void

See Also