Determine number of screens and screen relative location without WinForms

Posted by Philipp Schmid on Stack Overflow See other posts from Stack Overflow or by Philipp Schmid
Published on 2008-11-03T14:55:10Z Indexed on 2010/04/02 22:03 UTC
Read the original article Hit count: 254

Filed under:
|

I want to save and restore the window position of my WPF application. I want to make the code robust to use with multiple monitors who's number and relative location can change (I want to avoid opening my application off-screen when the monitor configuration has changed inbetween invocations).

I know of the Screen class in System.Windows.Forms, but I don't want to take a dependency on that assembly just for this feature.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about multiple-monitors