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.
Windows , , . DesktopLocation, Size WindowState ( , ). , .
DesktopLocation
Size
WindowState
Source: https://habr.com/ru/post/1699057/More articles:Is there a timeout for a batch file? - timeoutDjango: overriding verbose_name for AutoField without dropping a model - pythonSQL Server query for two related databases using different mappings - sql-serverWPF - IsMouseOver binding to visibility - data-bindingVisual Studio colors loaded incorrectly - visual-studio-2008Network security basics (IIS, SQL, RDP, etc.) For the developer - securityHow can I avoid automatically connecting to T-SQL for debugging in Visual Studio 2008? - debuggingCOM/Interop - поддержка нескольких версий - referenceIs this a suitable event approach for a Windows service? - event-driven-designhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1699062/how-do-i-use-wscriptshell-sendkeys-to-send-number-pad-key-strokes&usg=ALkJrhgZx-1TZktoAjId7D1vOFuCgqUeJwAll Articles