Catel.Windows.WindowExtensions.SetOwnerWindowAndFocus C# (CSharp) Method

SetOwnerWindowAndFocus() public static method

Sets the owner window of a specific window via the window handle, but also sets the focus on the first control.
public static SetOwnerWindowAndFocus ( this window, IntPtr owner, bool forceNewOwner = false ) : void
window this 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).
return void
        public static void SetOwnerWindowAndFocus(this SystemWindow window, IntPtr owner, bool forceNewOwner = false)
        {
            SetOwnerWindowByHandle(window, owner, forceNewOwner, true);
        }

Same methods

WindowExtensions::SetOwnerWindowAndFocus ( this window, Window owner, bool forceNewOwner = false ) : void
WindowExtensions::SetOwnerWindowAndFocus ( this window, bool forceNewOwner = false ) : void