ItemsControlAutomationPeer ItemsControlAutomationPeer ItemsControlAutomationPeer Class

Exposes ItemsControl types to Microsoft UI Automation.

Syntax

Declaration

public class ItemsControlAutomationPeerpublic class ItemsControlAutomationPeerPublic Class ItemsControlAutomationPeer

Inheritance Hierarchy

Inherited Members

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

Remarks

The Windows Runtime ItemsControl class creates a new ItemsControlAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from ItemsControlAutomationPeer if you are deriving a custom class from ItemsControl and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer. Make sure though that there aren't any existing derived classes from ItemsControl that might better suit your scenario. For example, Selector, FlipView, GridView, ComboBox, ListViewBase and ListBox are all a type of ItemsControl. Each of these already has a dedicated automation peer.

Default peer implementation and overrides in ItemsControlAutomationPeer

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

For Windows Phone Store app, ItemsControlAutomationPeer has methods that support creating item-specific automation peers for data items. See CreateItemAutomationPeer(System.Object) and OnCreateItemAutomationPeer.

ItemsControlAutomationPeer derived classes

ItemsControlAutomationPeer is the parent class for SelectorAutomationPeer.

Constructors summary

Initializes a new instance of the ItemsControlAutomationPeer class.

Methods summary

Creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.

Retrieves an element by the specified property value.

Constructors

  • ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)
    ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)
    ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)
    ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)

    Initializes a new instance of the ItemsControlAutomationPeer class.

    public ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)public ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl)Public Function ItemsControlAutomationPeer(Windows.UI.Xaml.Controls.ItemsControl) As

    Parameters

Methods

  • CreateItemAutomationPeer(System.Object)
    CreateItemAutomationPeer(System.Object)
    CreateItemAutomationPeer(System.Object)
    CreateItemAutomationPeer(System.Object)

    Creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.

    public ItemAutomationPeer CreateItemAutomationPeer(System.Object)public ItemAutomationPeer CreateItemAutomationPeer(System.Object)Public Function CreateItemAutomationPeer(System.Object) As ItemAutomationPeer

    Parameters

    • item
      System.Object
      System.Object
      System.Object

      The data item that is associated with this ItemAutomationPeer.

    Returns

  • FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)
    FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)
    FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)
    FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)

    Retrieves an element by the specified property value.

    public IRawElementProviderSimple FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)public IRawElementProviderSimple FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object)Public Function FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object) As IRawElementProviderSimple

    Parameters

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll