-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Automation.Peers.ListViewBaseAutomationPeer |
winrt class |
A base class that provides a Microsoft UI Automation peer implementation for types that derive from ListViewBase.
ListViewBase isn't used as a control class, because it is the base class for other controls. You could either derive from those other controls or derive from directly, but the latter means that you have to provide a template and a lot more behavior. If you derive from ListViewBase, override OnCreateAutomationPeer so that it returns a custom peer that is based on ListViewBaseAutomationPeer.
ListViewBaseAutomationPeer 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 PatternInterface.DropTarget (IDropTargetProvider). Pattern support for PatternInterface.Selection (ISelectionProvider) and PatternInterface.ItemContainer (IItemContainerProvider) comes from peer base classes SelectorAutomationPeer and ItemsControlAutomationPeer.
- GetClassName and GetAutomationControlType don't have implementations. It's expected that you will implement these. A typical GetAutomationControlTypeCore implementation would return AutomationControlType.List.
- GetChildren has an implementation that returns the item peers. This implementation is used by derived peer classes such as ListViewAutomationPeer. 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.
ListViewBaseAutomationPeer is the parent class for GridViewAutomationPeer and ListViewAutomationPeer.
SelectorAutomationPeer, IItemContainerProvider, ISelectionProvider, IDropTargetProvider