语言

WindowInteropHelper.Owner 属性

定义

获取或设置 Windows Presentation Foundation (WPF) 所有者窗口的句柄。

public:
 property IntPtr Owner { IntPtr get(); void set(IntPtr value); };
public IntPtr Owner { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
public IntPtr Owner { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.Owner : nativeint with get, set
member this.Owner : nativeint with get, set
Public Property Owner As IntPtr

属性值

IntPtr

nativeint

所有者窗口句柄 (HWND)。

特性

注解

可以通过设置此属性来重定窗口。 与常规 Win32 编程一样,请勿重新指定已在使用的窗口。

适用于

另请参阅