GenericRootAutomationPeer 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向 UI 自动化公开 HwndSource 类型。
public ref class GenericRootAutomationPeer : System::Windows::Automation::Peers::UIElementAutomationPeer
public class GenericRootAutomationPeer : System.Windows.Automation.Peers.UIElementAutomationPeer
type GenericRootAutomationPeer = class
inherit UIElementAutomationPeer
Public Class GenericRootAutomationPeer
Inherits UIElementAutomationPeer
- 继承
注解
GenericRootAutomationPeer 当它包含以下树时,用作 的对等 HwndSource :
由于只有 UIElement 类型具有对等,并且视觉对象不是 UIElement 类型,因此在类型的 UI 自动化树 UIElement 中不存在公共父级。 UI 自动化需要来自应用程序的单个根对等方;因此,.NET Framework为 HwndSource 创建 ,GenericRootAutomationPeer以便充当这两UIElement种类型的父对等的单个根对等方。
通常,根对等方是 。WindowAutomationPeer
构造函数
GenericRootAutomationPeer(UIElement) |
初始化 GenericRootAutomationPeer 类的新实例。 |
属性
Dispatcher |
获取与此 Dispatcher 关联的 DispatcherObject。 (继承自 DispatcherObject) |
EventsSource |
获取或设置一个 AutomationPeer,它作为来自此 AutomationPeer 的所有事件的源报告给自动化客户端。 (继承自 AutomationPeer) |
IsHwndHost |
获取一个值,该值指示Windows Presentation Foundation (WPF 中与此AutomationPeer主机 |
Owner |
获取与此 UIElementAutomationPeer 关联的 UIElement。 (继承自 UIElementAutomationPeer) |
方法
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈