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:
"SystemParameters.PrimaryScreenWidth" It always gives primary Screen's width.
"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.