Make WPF Application Fullscreen (Cover startmenu)

前端 未结 6 752
故里飘歌
故里飘歌 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:43

    You can also do it at run time as follows :

    • Assign name to the window (x:Name = "HomePage")
    • In constructor just set WindowState property to Maximized as follows

    HomePage.WindowState = WindowState.Maximized;

提交回复
热议问题