Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ItemAutomationPeer Class

Exposes a data item in an Items collection to UI Automation. 

Namespace:  System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

public abstract class ItemAutomationPeer : AutomationPeer
This class is abstract; see Inheritance Hierarchy for derived non-abstract classes usable in XAML.

Data items that are not also UIElement types do not have children; however, they can have a UIElement tree and a corresponding UI Automation tree.

For example, a ListBox can have a collection of strings that contain data items. When those items are processed by an ItemsControl for visualization, a UIElement tree is created for them. This tree can have a corresponding UI Automation tree. After the tree is created, WPF merges the UIElement tree into a UI Automation tree. ItemAutomationPeer works with its UIElement counterpart, if it exists, to obtain more information about the UIElement tree.

Only visible data items, or more precisely, the corresponding UIElement trees, have this dualism. Non-visible data items, which have no corresponding UIElement trees, have only one ItemAutomationPeer.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
© 2018 Microsoft