AutomationPeer.IsHwndHost 属性

定义

获取一个值,该值指示Windows Presentation Foundation (WPF) 中与此AutomationPeer主机hwnds关联的元素。

protected public:
 virtual property bool IsHwndHost { bool get(); };
protected internal virtual bool IsHwndHost { get; }
member this.IsHwndHost : bool
Protected Friend Overridable ReadOnly Property IsHwndHost As Boolean

属性值

Boolean

true if the element that is associated with this AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF); otherwise, false.

注解

Windows Presentation Foundation (WPF) 中托管hwnds的元素的两个示例是WindowsFormsHostPopup

这些对等方还必须重写 GetHostRawElementProviderCore

适用于

另请参阅