SelectorItemAutomationPeer SelectorItemAutomationPeer SelectorItemAutomationPeer Class

Exposes the items in a Selector to Microsoft UI Automation.

Syntax

Declaration

public class SelectorItemAutomationPeerpublic class SelectorItemAutomationPeerPublic Class SelectorItemAutomationPeer

Inheritance Hierarchy

Inherited Members

Inherited methods

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited properties

, , ,

Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)
Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)
Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)

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.

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:

Constructors summary

Initializes a new instance of the SelectorItemAutomationPeer class.

Properties summary

Gets a value that indicates whether an item is selected.

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

Methods summary

Adds the current element to the collection of selected items.

Removes the current element from the collection of selected items.

Clears any existing selection and then selects the current element.

Constructors

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

    Initializes a new instance of the SelectorItemAutomationPeer class.

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

    Parameters

Properties

  • IsSelected
    IsSelected
    IsSelected
    IsSelected

    Gets a value that indicates whether an item is selected.

    public bool IsSelected { get; }public bool IsSelected { get; }Public ReadOnly Property IsSelected As boolpublic bool IsSelected { get; }

    Property Value

    • 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 IRawElementProviderSimplepublic IRawElementProviderSimple SelectionContainer { get; }

    Property Value

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 voidpublic void AddToSelection()
  • RemoveFromSelection()
    RemoveFromSelection()
    RemoveFromSelection()
    RemoveFromSelection()

    Removes the current element from the collection of selected items.

    public void RemoveFromSelection()public void RemoveFromSelection()Public Function RemoveFromSelection() As voidpublic void RemoveFromSelection()
  • Select()
    Select()
    Select()
    Select()

    Clears any existing selection and then selects the current element.

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll