Return to site

Windows 10 full screen taskbar

broken image
broken image

Window.WindowState = WindowState.Maximized Window.WindowStyle = WindowStyle.SingleBorderWindow

broken image

If (window.WindowStyle = WindowStyle.None) I also use this code to switch between full screen and window mode: public void SwitchFullScreen() Private void SetTopMostFalse(Window window)Ī(new Action(() => T = new Timer(o => SetTopMostFalse(window), null, 1000, Timeout.Infinite)

broken image

Private void StartTopmostTimer(Window window) Var window = ().SingleOrDefault(x => x.IsActive) The current solution i use is setting the window as Topmost for a short time, then setting it back to false (i want my window to work nice with Alt+Tab) private Timer t I had this issue with the taskbar staying on top of my window. WindowStyle = WindowStyle.SingleBorderWindow Show taskbar and run in window Taskbar.Show() Hide taskbar and show fullscreen: Taskbar.Hide() Step 2: Connect to window Closing event to get taskbar back when window will close with Alt+F4 private void Window_Closing(object sender, e) Private static extern int ShowWindow(int hwnd, int command) Private static extern int FindWindow(string className, string windowText) Step 1: Write class with static methods Hide() and Show() for taskbar public class Taskbar