diff --git a/samples/ControlCatalog/Pages/DialogsPage.xaml.cs b/samples/ControlCatalog/Pages/DialogsPage.xaml.cs index 55753b214f..e2e9fbd21c 100644 --- a/samples/ControlCatalog/Pages/DialogsPage.xaml.cs +++ b/samples/ControlCatalog/Pages/DialogsPage.xaml.cs @@ -44,7 +44,7 @@ namespace ControlCatalog.Pages window.Height = 200; window.Width = 200; window.Content = new TextBlock { Text = "Hello world!" }; - window.WindowStartupLocation = WindowStartupLocation.CenterScreen; + window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(GetWindow()); }; }