Borderless window application takes up more space than my screen resolution

前端 未结 8 790
忘了有多久
忘了有多久 2021-01-02 04:55

I have created a borderless application in WPF, and it works pretty good. However, when I set the WindowState to full screen, the application takes up more space than my scr

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 05:22

    A newer feature of .NET has solved this problem. Leave your WindowStyle="SingleBorderWindow" or "ThreeDBorderWindow" Leave ResizeMode="CanResize", then add this to the xaml inside the

    
        
            
        
    
    

    The window will not have any of the default window pane, but will still allow resizing and will not cover the task bar when maximized.

提交回复
热议问题