Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 4.21 KB

itemautomationpeer.md

File metadata and controls

42 lines (27 loc) · 4.21 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer

-description

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

-remarks

ItemAutomationPeer is generated from items control logic and ItemsControlAutomationPeer, not an associated control class.

In addition to the typical peer implementation API, ItemAutomationPeer has an ItemsControlAutomationPeer property to reference its container peer. The container peer potentially supplies the logic for AutomationPeer methods as called against the ItemAutomationPeer. There is also an Item property that is similar in purpose to the Owner property on other peers (it provides the reference to the object that this peer provides the automation exposure for). Both these values must be set in the ItemAutomationPeer constructor.

ItemAutomationPeer implements the Realize method in order to support the IVirtualizedItemProvider control pattern. Clients can call their framework's equivalent pattern access to Realize to get a non-virtualized result. This generates more information about the item in an automation tree view.

Default peer implementation and overrides in ItemAutomationPeer

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

ItemAutomationPeer derived classes

ItemAutomationPeer is the parent class for SelectorItemAutomationPeer.

-examples

-see-also

AutomationPeer, IVirtualizedItemProvider