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 程式設計一樣,請勿重新父代已在使用中的視窗。

適用於

另請參閱