Catel.Windows.WindowExtensions.SetOwnerWindowByWindow C# (CSharp) Метод

SetOwnerWindowByWindow() приватный статический Метод

Sets the owner window of a specific window.
private static SetOwnerWindowByWindow ( Window window, Window owner, bool forceNewOwner = false, bool focusFirstControl = true ) : void
window System.Windows.Window Reference to the current window.
owner System.Windows.Window New owner window.
forceNewOwner bool If true, the new owner will be forced. Otherwise, if the /// window currently has an owner, that owner will be respected (and thus not changed).
focusFirstControl bool If true, the first control will automatically be focused.
Результат void
        private static void SetOwnerWindowByWindow(SystemWindow window, SystemWindow owner, bool forceNewOwner = false, bool focusFirstControl = true)
        {
            SetOwnerWindow(window, owner, IntPtr.Zero, forceNewOwner, focusFirstControl);
        }
        #endregion