UIElement3DAutomationPeer.CreatePeerForElement(UIElement3D) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a UIElement3DAutomationPeer for the specified UIElement3D.
public:
static System::Windows::Automation::Peers::AutomationPeer ^ CreatePeerForElement(System::Windows::UIElement3D ^ element);
public static System.Windows.Automation.Peers.AutomationPeer CreatePeerForElement (System.Windows.UIElement3D element);
static member CreatePeerForElement : System.Windows.UIElement3D -> System.Windows.Automation.Peers.AutomationPeer
Public Shared Function CreatePeerForElement (element As UIElement3D) As AutomationPeer
Parameters
- element
- UIElement3D
The UIElement3D that is associated with this UIElement3DAutomationPeer.
Returns
A UIElement3DAutomationPeer for the specified UIElement3D.
Remarks
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 Versions and Dependencies.
Applies to
.NET