-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Automation.Peers.GridViewItemDataAutomationPeer |
winrt class |
Exposes GridView items to Microsoft UI Automation, using a data representation of the item so that the peer supports scrolling to that item with data awareness.
GridViewItemDataAutomationPeer is generated from GridViewAutomationPeer logic, not an associated control class.
GridViewItemDataAutomationPeer 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), PatternInterface.SelectionItem (ISelectionItemProvider) and PatternInterface.VirtualizedItem (IVirtualizedItemProvider). All these patterns come from peer base classes.
- GetClassName returns "GridViewItem".
- GetAutomationControlType returns AutomationControlType.ListItem.
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.
GridViewAutomationPeer, SelectorItemAutomationPeer, IVirtualizedItemProvider, ISelectionItemProvider, IScrollItemProvider, Custom automation peers