Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.