How to make full screen mode, without covering the taskbar using :wpf c#

前端 未结 6 1362
谎友^
谎友^ 2020-12-17 17:44

I need to change windows taskbar in my WPF application. For that I set WindowStyle=\"None\", which means to disable the windows taskbar, and make custom taskbar

6条回答
  •  [愿得一人]
    2020-12-17 18:26

    You can easily add the constraints on height in XAML by adding:

    MaxHeight="{Binding Source={x:Static SystemParameters.MaximizedPrimaryScreenHeight}}"
    

    into the Window's tag.

提交回复
热议问题