Prevent window from stealing focus

This commit is contained in:
TheXamlGuy
2024-01-16 08:31:03 +00:00
parent 99855e77b9
commit 86603a6567
5 changed files with 67 additions and 17 deletions
@@ -10,7 +10,7 @@ public static class WindowExtensions
public static IntPtr GetHandle(this Window window) =>
window is not null ? WindowNative.GetWindowHandle(window) : default;
public static void SetIsShownInSwitchers2(this Window window,
public static void SetIsAvailableInSwitchers(this Window window,
bool value) => window.AppWindow.IsShownInSwitchers = value;
public static void SetOpacity(this Window window,
@@ -19,6 +19,9 @@ public static class WindowExtensions
public static void SetStyle(this Window window,
WindowStyle style) => window.GetHandle().SetWindowStyle(style);
public static void SetStyle(this Window window,
ExtendedWindowStyle style) => window.GetHandle().SetExtendedWindowStyle(style);
public static void SetTopMost(this Window window,
bool value)
{