1

I am using borderless custom window in WPF and it works fine on one monitor but one i drag the window to second monitor which has higer resolution the window is not properly maximized and some space of monitor remains empty. This issue is described in the following community blog, is their any workaround of this problem ?

https://connect.microsoft.com/VisualStudio/feedback/details/540394/maximized-window-does-not-cover-working-area-after-screen-setup-change

Thanks

Ehsan Hafeez
  • 598
  • 4
  • 23
  • possible duplicate of [WPF Borderless window Maximized issue on different resolutions](http://stackoverflow.com/questions/22634099/wpf-borderless-window-maximized-issue-on-different-resolutions) – kenjara Mar 25 '14 at 16:26

2 Answers2

1

I think you have no alternative. You have to work with low level windows API.

See http://blog.onedevjob.com/2010/10/19/fixing-full-screen-wpf-windows/ for a better trattation of the arguments.

Or Have you checked the Screen class ?

abrfra
  • 618
  • 2
  • 6
  • 23
0

Check out the answer I gave on this thread on Borderless windows. The answer to your multi-monitor problem exists within that code.

WPF Borderless Window issues: Aero Snap & Maximizing

Michael A. Allen
  • 608
  • 5
  • 12