From 89e00fb9aab7e37fb942f88e1ee9f0a6fd04098d Mon Sep 17 00:00:00 2001 From: ruri Date: Mon, 29 Apr 2019 01:12:34 +0200 Subject: [PATCH] The main window and dialogs now open at the center of the screen. --- OpenBullet/MainDialog.xaml.cs | 2 ++ OpenBullet/MainWindow.xaml.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/OpenBullet/MainDialog.xaml.cs b/OpenBullet/MainDialog.xaml.cs index c353404..eab6ab2 100644 --- a/OpenBullet/MainDialog.xaml.cs +++ b/OpenBullet/MainDialog.xaml.cs @@ -12,6 +12,8 @@ namespace OpenBullet { InitializeComponent(); + WindowStartupLocation = WindowStartupLocation.CenterScreen; + Content = content; Title = title; } diff --git a/OpenBullet/MainWindow.xaml.cs b/OpenBullet/MainWindow.xaml.cs index 22307e1..e4d54c0 100644 --- a/OpenBullet/MainWindow.xaml.cs +++ b/OpenBullet/MainWindow.xaml.cs @@ -54,6 +54,8 @@ namespace OpenBullet InitializeComponent(); + WindowStartupLocation = WindowStartupLocation.CenterScreen; + Title = title; titleLabel.Content = title;