Borderless window application takes up more space than my screen resolution

前端 未结 8 789
忘了有多久
忘了有多久 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:16

    In Xaml set the following binding on the Window.MaxHeight:

    MaxHeight="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}"
    

    No need for an additional utility class.

提交回复
热议问题