public static IntPtr GetParentWindowHandle(this Window window) { if (window.Owner != null) { return(new WindowInteropHelper(window.Owner).Handle); } else { return(Win32Helper.GetOwner(new WindowInteropHelper(window).Handle)); } }
public static IntPtr GetParentWindowHandle(this Window window) { if (window.Owner != null) { return(new WindowInteropHelper(window.Owner).Handle); } else { return(Win32Helper.GetOwner(new WindowInteropHelper(window).Handle)); } }