Make WPF Application Fullscreen (Cover startmenu)

前端 未结 6 731
故里飘歌
故里飘歌 2020-12-23 13:12

I would like to make my WPF application fullscreen. Right now the start menu prevents it from covering everything and shifts my application up. This is what I have for my Ma

6条回答
  •  遥遥无期
    2020-12-23 13:57

    When you're doing it by code the trick is to call

    WindowStyle = WindowStyle.None;
    

    first and then

    WindowState = WindowState.Maximized;
    

    to get it to display over the Taskbar.

提交回复
热议问题