Avalonia
Avalonia copied to clipboard
Fix window incorrect positioning with window startup location CenterScreen
What does the pull request do?
Previously if you would set Window WindowStartupLocation to WindowStartupLocation.CenterScreen when Window is already shown and set IsVisible to false and then to true Window will get centered which is not expected. This behaviour doesen't match WPF's behaviour.
Fixes https://github.com/AvaloniaUI/Avalonia/issues/11857