0

I am working on a wpf application which runs on multiscreen system (6 screens). My requirement is that when I drag a window from primary monitor to secondary monitor, it should be able to get the width of secondary monitor.

I tried following:

  1. "SystemParameters.PrimaryScreenWidth" It always gives primary Screen's width.

  2. "System.Windows.Forms.Screen.AllScreens" If there are more than one screen how would I get the current secondary screen width?

Note: I am using AvalonDock for docking/floating functionality.

DevX
  • 725
  • 3
  • 13
  • 26
  • Can you not maximize the secondary window after dropping it? – Bas Jun 16 '14 at 12:05
  • Thanks for the response. Yes, I can maximize the window on secondary monitor but I need to get the screen width of the secondary monitor to set the width of some controls in the window. – DevX Jun 16 '14 at 13:44
  • Its a bit urgent for me. It will be highly appreciated if anyone can help me out. Thanks. – DevX Jun 17 '14 at 13:03
  • Can anyone please help me on this issue? – DevX Jun 18 '14 at 13:09

0 Answers0