Question

I code an editor, that should have a fullscreen-mode (editor covers 100% of the screen, taskbar is not visible). "Set the Window Topmost" you would say, but here´s the problem: my editor runs external programs, that have to be visible.

My editor should hide the taskbar, but not be topmost for other applications. Is this possible? And how?

Était-ce utile?

La solution

You don't need a TopMost window to cover the taskbar. Creating a borderless maximized window is enough:

    public MainWindow() {
        InitializeComponent();
        this.WindowState = System.Windows.WindowState.Maximized;
        this.ResizeMode = System.Windows.ResizeMode.NoResize;
    }

You still need a way for the user to activate a window of another application. It isn't clear what you had in mind, but Alt+Tab works.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top