UIElement3DAutomationPeer 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向 UI 自动化公开 UIElement3D 类型。
public ref class UIElement3DAutomationPeer : System::Windows::Automation::Peers::AutomationPeer
public class UIElement3DAutomationPeer : System.Windows.Automation.Peers.AutomationPeer
type UIElement3DAutomationPeer = class
inherit AutomationPeer
Public Class UIElement3DAutomationPeer
Inherits AutomationPeer
- 继承
注解
默认情况下,继承自 UIElement3D 的任何类都使用 UIElement3DAutomationPeer 与 UI 自动化通信。
如果创建继承自 UIElement3D的类,可能需要提供自动化对等来支持类的功能。 GetClassNameCore重写 方法以返回表示与 UIElement3DAutomationPeer关联的元素类型的字符串。 例如,如果创建名为 的 My3DElement
类和名为 的 My3DElementAutomationPeer
自动化对等,请重写 GetClassNameCore 方法以返回字符串“My3DElement”。
如果类与已知控件类型之一匹配,请重写 GetAutomationControlTypeCore 方法以返回该 ControlType。 请注意,尽管现有 ControlType 值通常与 2D 控件相关联,但 ControlType 指示控件的功能,而不是其外观。 因此, UIElement3D 如果在用户单击某个操作时调用它,则可能需要 GetHelpTextCore 返回 ControlType.Button。
自定义 UIElement3D 的行为决定了应替代的其他方法。 中的每个 UIElement3DAutomationPeer 方法主题都介绍如何使用 方法,以及何时适合重写该方法。
UIElement3DAutomationPeer在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系。
构造函数
UIElement3DAutomationPeer(UIElement3D) |
初始化 UIElement3DAutomationPeer 类的新实例。 |
属性
Dispatcher |
获取与此 Dispatcher 关联的 DispatcherObject。 (继承自 DispatcherObject) |
EventsSource |
获取或设置一个 AutomationPeer,它作为来自此 AutomationPeer 的所有事件的源报告给自动化客户端。 (继承自 AutomationPeer) |
IsHwndHost |
获取一个值,该值指示Windows Presentation Foundation (WPF 中与此AutomationPeer主机 |
Owner |
获取与此 UIElement3DAutomationPeer 关联的 UIElement3D。 |
方法
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈