protected virtual void SaveWindowState() { if (_settings == null) { return; } WINDOWPLACEMENT wp; var hwnd = new WindowInteropHelper(_window).Handle; wp = NativeMethodsUltimate.GetWindowPlacement(hwnd); _settings.Placement = wp; _settings.Save(); }
protected virtual void SaveWindowState() { if (_settings == null) { return; } WINDOWPLACEMENT wp; var hwnd = new WindowInteropHelper(_window).Handle; wp = NativeMethodsUltimate.GetWindowPlacement(hwnd); _settings.Placement = wp; _settings.Save(); }