문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top