UIElement3DAutomationPeer.CreatePeerForElement Method (UIElement3D)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a UIElement3DAutomationPeer for the specified UIElement3D.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationCore (in PresentationCore.dll)

public static AutomationPeer CreatePeerForElement(
	UIElement3D element


Type: System.Windows.UIElement3D

The UIElement3D that is associated with this UIElement3DAutomationPeer.

This UIElement3DAutomationPeer remains in memory until the associated UIElement3D is destroyed.

The same instance of the UIElement3DAutomationPeer is returned from subsequent calls to this method and to calls to FromElement. The type of the peer is determined by the OnCreateAutomationPeer virtual callback. If UIElement3D does not implement the callback, no UIElement3DAutomationPeer is created and this method returns null.

UIElement3DAutomationPeer is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top