Make WPF Application Fullscreen (Cover startmenu)

前端 未结 6 729
故里飘歌
故里飘歌 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条回答
  •  梦毁少年i
    2020-12-23 13:54

    window.WindowStyle = WindowStyle.None;
    window.ResizeMode = ResizeMode.NoResize;
    window.Left = 0;
    window.Top = 0;
    window.Width = SystemParameters.VirtualScreenWidth;
    window.Height = SystemParameters.VirtualScreenHeight;
    window.Topmost = true;
    

    Works with multiple screens

提交回复
热议问题