Grid​View​Automation​Peer Grid​View​Automation​Peer Grid​View​Automation​Peer Class


Exposes GridView types to Microsoft UI Automation.

public : class GridViewAutomationPeer : ListViewBaseAutomationPeer, IGridViewAutomationPeerpublic class GridViewAutomationPeer : ListViewBaseAutomationPeer, IGridViewAutomationPeerPublic Class GridViewAutomationPeer Inherits ListViewBaseAutomationPeer Implements IGridViewAutomationPeer
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited methods


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.


GridViewAutomationPeer(GridView) GridViewAutomationPeer(GridView) GridViewAutomationPeer(GridView)

Initializes a new instance of the GridViewAutomationPeer class.

public : GridViewAutomationPeer(GridView owner)public GridViewAutomationPeer(GridView owner)Public Sub New(owner As GridView)
GridView GridView GridView

The GridView to create a peer for.


See Also