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

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

Sets the owner window of a specific window via the window handle.
private static SetOwnerWindowByHandle ( Window window, IntPtr owner, bool forceNewOwner = false, bool focusFirstControl = true ) : void
window System.Windows.Window Reference to the current window.
owner System.IntPtr 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 SetOwnerWindowByHandle(SystemWindow window, IntPtr owner, bool forceNewOwner = false, bool focusFirstControl = true)
        {
            SetOwnerWindow(window, null, owner, forceNewOwner, focusFirstControl);
        }
        #endregion