ListBoxItemDataAutomationPeer
ListBoxItemDataAutomationPeer
ListBoxItemDataAutomationPeer
ListBoxItemDataAutomationPeer
Class
Definition
Exposes ListBox items to Microsoft UI Automation, using a data representation of the item so that the peer supports scrolling to that item with data awareness.
public : class ListBoxItemDataAutomationPeer : SelectorItemAutomationPeer, IListBoxItemDataAutomationPeer, IScrollItemProviderpublic class ListBoxItemDataAutomationPeer : SelectorItemAutomationPeer, IListBoxItemDataAutomationPeer, IScrollItemProviderPublic Class ListBoxItemDataAutomationPeer Inherits SelectorItemAutomationPeer Implements IListBoxItemDataAutomationPeer, IScrollItemProvider// This API is not available in Javascript.
- Inheritance
-
SelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeerListBoxItemDataAutomationPeerListBoxItemDataAutomationPeerListBoxItemDataAutomationPeerListBoxItemDataAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
ListBoxItemDataAutomationPeer is generated from ListBoxAutomationPeer logic, not an associated control class.
Default peer implementation and overrides in ListBoxItemDataAutomationPeer
ListBoxItemDataAutomationPeer 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 supports PatternInterface.ScrollItem (IScrollItemProvider ). The base SelectorItemAutomationPeer supports PatternInterface.SelectionItem (ISelectionItemProvider ) and the base ItemAutomationPeer supports PatternInterface.VirtualizedItem (IVirtualizedItemProvider ).
- GetClassName returns "ListBoxItem".
- GetAutomationControlType returns AutomationControlType.ListItem.
- Although ItemAutomationPeer reported IVirtualizedItemProvider support, ListBoxItemDataAutomationPeer re-implements this to call ScrollIntoView.
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
ListBoxItemDataAutomationPeer(Object, ListBoxAutomationPeer) ListBoxItemDataAutomationPeer(Object, ListBoxAutomationPeer) ListBoxItemDataAutomationPeer(Object, ListBoxAutomationPeer) ListBoxItemDataAutomationPeer(Object, ListBoxAutomationPeer)
Initializes a new instance of the ListBoxItemDataAutomationPeer class.
public : ListBoxItemDataAutomationPeer(PlatForm::Object item, ListBoxAutomationPeer parent)public ListBoxItemDataAutomationPeer(Object item, ListBoxAutomationPeer parent)Public Sub New(item As Object, parent As ListBoxAutomationPeer)// This API is not available in Javascript.
- item
- PlatForm::Object Object Object Object
The specific data item.
The automation peer for the ListBox that contains the item.
Methods
ScrollIntoView() ScrollIntoView() ScrollIntoView() ScrollIntoView()
Scrolls the content area of a container object in order to display the control within the visible region (viewport) of the container.
public : void ScrollIntoView()public void ScrollIntoView()Public Function ScrollIntoView() As void// This API is not available in Javascript.