Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 3.47 KB

listviewautomationpeer.md

File metadata and controls

38 lines (27 loc) · 3.47 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Peers.ListViewAutomationPeer
winrt class

Microsoft.UI.Xaml.Automation.Peers.ListViewAutomationPeer

-description

Exposes ListView types to Microsoft UI Automation.

-remarks

The Windows Runtime ListView class creates a new ListViewAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from ListViewAutomationPeer if you are deriving a custom class from ListView 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.

Default peer implementation and overrides in ListViewAutomationPeer

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

The API that supports the control patterns is all on ListViewBaseAutomationPeer, SelectorAutomationPeer or ItemsControlAutomationPeer.

-examples

-see-also

ListView, ListViewBaseAutomationPeer, ItemsControlAutomationPeer, SelectorAutomationPeer, IItemContainerProvider, ISelectionProvider, IDropTargetProvider, Custom automation peers