This documentation is archived and is not being maintained.

UIElement3DAutomationPeer Class

Exposes UIElement3D types to UI Automation.

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

public class UIElement3DAutomationPeer : AutomationPeer
You cannot directly create an instance of this class in XAML.

By default, any class that inherits from UIElement3D uses UIElement3DAutomationPeer to communicate with UI Automation.

If you create a class that inherits from UIElement3D, you may want to provide an automation peer to support the functionality of your class. Override the GetClassNameCore method to return a string that represents the type of the element associated with the UIElement3DAutomationPeer. For example, if you create a class called My3DElement and an automation peer called My3DElementAutomationPeer, override the GetClassNameCore method to return the string "My3DElement".

If your class matches one of the known control types, override the GetAutomationControlTypeCore method to return that ControlType. Note that although the existing ControlType values are generally associated with 2D controls, the ControlType indicates a control's functionality, not its appearance. So if your UIElement3D invokes an action when the user clicks it, you probably want GetHelpTextCore to return ControlType.Button.

The behavior of your custom UIElement3D determines what other methods you should override. Each method topic in the UIElement3DAutomationPeer describes how the method is used and when it is appropriate to override it.

UIElement3DAutomationPeer is introduced in the .NET Framework version 3.5. For more information, see .NET Framework 3.5 Architecture.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP1