From 13aafcc5401d9f12f1fbcffbd858bc3d832a80cb Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 18 Jan 2019 12:58:13 +0100 Subject: [PATCH] Show dialog centered on owner. --- samples/ControlCatalog/Pages/DialogsPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }; }