diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index 2ac6299c0e..53f727900b 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -388,7 +388,7 @@ namespace Avalonia.Controls PlatformImpl?.Show(); Renderer?.Start(); } - SetWindowStartupLocation(); + SetWindowStartupLocation(Owner?.PlatformImpl); } /// @@ -464,7 +464,7 @@ namespace Avalonia.Controls return result.Task; } - private void SetWindowStartupLocation(IWindowImpl owner = null) + private void SetWindowStartupLocation(IWindowBaseImpl owner = null) { var scaling = owner?.Scaling ?? PlatformImpl?.Scaling ?? 1;