OnCreateAutomationPeer Method
Collapse the table of content
Expand the table of content

DataGrid.OnCreateAutomationPeer Method ()


Returns the automation peer for this DataGrid.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override AutomationPeer OnCreateAutomationPeer()

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer

The automation peer for this DataGrid.

The DataGridAutomationPeer exposes the DataGrid to UI automation.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft