Exemple #1
0
 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));
     }
 }