SelectorItemAutomationPeer
SelectorItemAutomationPeer
SelectorItemAutomationPeer
SelectorItemAutomationPeer
Class
Definition
public : class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderpublic class SelectorItemAutomationPeer : ItemAutomationPeer, ISelectorItemAutomationPeer, ISelectionItemProviderPublic Class SelectorItemAutomationPeer Inherits ItemAutomationPeer Implements ISelectorItemAutomationPeer, ISelectionItemProvider// This API is not available in Javascript.
- Inheritance
-
SelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
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.
- GetPattern reports that the peer provides pattern support for PatternInterface.SelectionItem (ISelectionItemProvider ). The base ItemAutomationPeer reports support for .
- GetClassName and GetAutomationControlType don't have implementations. It's expected that you will implement these. A typical GetAutomationControlTypeCore implementation would return AutomationControlType.ListItem or AutomationControlType.DataItem. The peer handles selection pattern logic so that a number of existing derived peers like ListBoxItemAutomationPeer can inherit automation support that parallels the base Selector behavior.
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:
- ComboBoxItemDataAutomationPeer
- FlipViewItemDataAutomationPeer
- GridViewItemDataAutomationPeer
- ListBoxItemDataAutomationPeer
- ListViewItemDataAutomationPeer
Constructors
SelectorItemAutomationPeer(Object, SelectorAutomationPeer) 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)// This API is not available in Javascript.
- item
- PlatForm::Object Object Object Object
The specific item.
The parent items control to create for.
Properties
IsSelected 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// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
true if the element is selected; otherwise, false.
SelectionContainer 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// This API is not available in Javascript.
- Value
- IRawElementProviderSimple IRawElementProviderSimple IRawElementProviderSimple IRawElementProviderSimple
The UI Automation provider.
Methods
AddToSelection() AddToSelection() AddToSelection() AddToSelection()
Adds the current element to the collection of selected items.
public : void AddToSelection()public void AddToSelection()Public Function AddToSelection() As void// This API is not available in Javascript.
RemoveFromSelection() RemoveFromSelection() RemoveFromSelection() RemoveFromSelection()
Removes the current element from the collection of selected items.
public : void RemoveFromSelection()public void RemoveFromSelection()Public Function RemoveFromSelection() As void// This API is not available in Javascript.