ListViewAutomationPeer
ListViewAutomationPeer
ListViewAutomationPeer
ListViewAutomationPeer
Class
Definition
public : class ListViewAutomationPeer : ListViewBaseAutomationPeer, IListViewAutomationPeerpublic class ListViewAutomationPeer : ListViewBaseAutomationPeer, IListViewAutomationPeerPublic Class ListViewAutomationPeer Inherits ListViewBaseAutomationPeer Implements IListViewAutomationPeer// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerListViewBaseAutomationPeerListViewBaseAutomationPeerListViewBaseAutomationPeerListViewBaseAutomationPeerListViewAutomationPeerListViewAutomationPeerListViewAutomationPeerListViewAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited properties
Inherited methods
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.
- 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.
Constructors
ListViewAutomationPeer(ListView) ListViewAutomationPeer(ListView) ListViewAutomationPeer(ListView) ListViewAutomationPeer(ListView)
Initializes a new instance of the ListViewAutomationPeer class.
public : ListViewAutomationPeer(ListView owner)public ListViewAutomationPeer(ListView owner)Public Sub New(owner As ListView)// This API is not available in Javascript.
See Also
- ListView ListView ListView ListView
- ListViewBaseAutomationPeer ListViewBaseAutomationPeer ListViewBaseAutomationPeer ListViewBaseAutomationPeer
- ItemsControlAutomationPeer ItemsControlAutomationPeer ItemsControlAutomationPeer ItemsControlAutomationPeer
- SelectorAutomationPeer SelectorAutomationPeer SelectorAutomationPeer SelectorAutomationPeer
- Custom automation peers