Determine the number of screens and the relative location of the screen without WinForms

I want to save and restore the window position of my WPF application. I want to make the code reliable for use with multiple monitors, the number and relative location of which can change (I want to not open the application off-screen when changing the monitor configuration between calls).

I know the Screen class in System.Windows.Forms, but I do not want to depend on this assembly for this function only.

+3
source share
1 answer

Windows , , . DesktopLocation, Size WindowState ( , ). , .

+1

Source: https://habr.com/ru/post/1699057/


All Articles