-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Automation.Peers.ListViewAutomationPeer |
winrt class |
Exposes ListView types to Microsoft UI Automation.
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.
ListViewAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
-
GetPattern reports that the peer provides pattern support for these patterns:
- PatternInterface.Selection (ISelectionProvider)
- PatternInterface.ItemContainer (IItemContainerProvider)
- PatternInterface.DropTarget (IDropTargetProvider )
- This is the accumulated pattern support from each of the peer base classes.
-
GetClassName returns "ListView".
-
GetAutomationControlType returns AutomationControlType.List.
-
GetChildren has an implementation from ListViewBaseAutomationPeer that returns the item peers. The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.
The API that supports the control patterns is all on ListViewBaseAutomationPeer, SelectorAutomationPeer or ItemsControlAutomationPeer.
ListView, ListViewBaseAutomationPeer, ItemsControlAutomationPeer, SelectorAutomationPeer, IItemContainerProvider, ISelectionProvider, IDropTargetProvider, Custom automation peers