ListBoxAutomationPeer
ListBoxAutomationPeer
ListBoxAutomationPeer
ListBoxAutomationPeer
Class
Definition
public : class ListBoxAutomationPeer : SelectorAutomationPeer, IListBoxAutomationPeerpublic class ListBoxAutomationPeer : SelectorAutomationPeer, IListBoxAutomationPeerPublic Class ListBoxAutomationPeer Inherits SelectorAutomationPeer Implements IListBoxAutomationPeer// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerItemsControlAutomationPeerListBoxAutomationPeerListBoxAutomationPeerListBoxAutomationPeerListBoxAutomationPeer
- 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 ListBox class creates a new ListBoxAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from ListBoxAutomationPeer if you are deriving a custom class from ListBox 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 ListBoxAutomationPeer
ListBoxAutomationPeer 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.Selection (ISelectionProvider ) and PatternInterface.ItemContainer (IItemContainerProvider ). This comes from peer base classes.
- GetClassName returns "ListBox".
- GetAutomationControlType returns AutomationControlType.List. This peer has the base classes ItemsControlAutomationPeer and SelectorAutomationPeer and these peers also have behavior that isn't overridden by the notes above, such as a GetChildren implementation. For more info, see ItemsControlAutomationPeer and SelectorAutomationPeer.
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.
Constructors
ListBoxAutomationPeer(ListBox) ListBoxAutomationPeer(ListBox) ListBoxAutomationPeer(ListBox) ListBoxAutomationPeer(ListBox)
Initializes a new instance of the ListBoxAutomationPeer class.
public : ListBoxAutomationPeer(ListBox owner)public ListBoxAutomationPeer(ListBox owner)Public Sub New(owner As ListBox)// This API is not available in Javascript.