Browse Source

Show dialog centered on owner.

pull/2250/head
Steven Kirk 7 years ago
parent
commit
13aafcc540
  1. 2
      samples/ControlCatalog/Pages/DialogsPage.xaml.cs

2
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());
};
}

Loading…
Cancel
Save