Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 3.32 KB

gridviewautomationpeer.md

File metadata and controls

39 lines (27 loc) · 3.32 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer

-description

Exposes GridView types to Microsoft UI Automation.

-remarks

The Windows Runtime GridView class creates a new GridViewAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from GridViewAutomationPeer if you are deriving a custom class from GridView 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 GridViewAutomationPeer

GridViewAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The API that supports the control patterns is all on ListViewBaseAutomationPeer, SelectorAutomationPeer or ItemsControlAutomationPeer.

-examples

-see-also

GridView, ListViewBaseAutomationPeer, IItemContainerProvider, ISelectionProvider, IDropTargetProvider, Custom automation peers