Window out of the screen when maximized using WPF shell integration library

前端 未结 7 471
无人及你
无人及你 2020-12-01 01:30

I\'m using the WPF Shell Integration Library to create a custom chrome of my wpf app. All is good, but when maximizing the app, 6 or 7 pixels are out of the screen.

7条回答
  •  一个人的身影
    2020-12-01 01:51

    To solve the issue of the window getting out of the screen simply set:

    this.ResizeMode = System.Windows.ResizeMode.NoResize;
    

    See JAPF's "Set up the main window of your WPF project" post for more info.

提交回复
热议问题