In our common project, the position and size of the application's main window (WPF window) is set using the API's SetWindowPlacement method. The WINDOWPLACEMENT's showCmd has value 3. After the call, the window is actually maximized, the upper right icon shows the correct "to normal mode" image, but the Application.Current.MainWindow.WindowState is still "NORMAL". This causes a non centered modal dialog which is using WindowStartupLocation=CenterOwner. How can I fix this without additionally setting the MainWindow's WindowState to Maximized?