I restore coordinates of Window on application startup. In good-old-Windows-Forms I used System.Windows.Forms.Screen collection. Is there anything similar in WPF world?
I did notice PrimaryScreen*, VirtualScreen* parameters in System.Windows.SystemParameters. However they left me hanging since it seems to be impossible to detect whether Window is inside bounds in cases when monitors are not same size.
System.Windows.Forms.Screenworks perfectly well within WPF, so I think the designers of WPF saw no advantage in replacing it with a WPF-specific version.You’ll have to do a coordinate transformation of course. Here’s an easy class to do the conversion:
Example usage: