Ruben 4 лет назад
Родитель
Сommit
607bfbc490

+ 3 - 3
PicView/UILogic/ConfigureWindows.cs

@@ -41,7 +41,7 @@ namespace PicView.UILogic
         {
             if (GetInfoWindow == null)
             {
-                GetInfoWindow = new InfoWindow();
+                GetInfoWindow = new InfoWindow { Owner = GetMainWindow };
                 GetInfoWindow.Show();
             }
             else
@@ -73,7 +73,7 @@ namespace PicView.UILogic
         {
             if (GetSettingsWindow == null)
             {
-                GetSettingsWindow = new SettingsWindow();
+                GetSettingsWindow = new SettingsWindow { Owner = GetMainWindow };
 
                 GetSettingsWindow.Show();
             }
@@ -106,7 +106,7 @@ namespace PicView.UILogic
         {
             if (GetEffectsWindow == null)
             {
-                GetEffectsWindow = new EffectsWindow();
+                GetEffectsWindow = new EffectsWindow { Owner = GetMainWindow };
 
                 GetEffectsWindow.Show();
             }

+ 1 - 0
PicView/Views/Windows/InfoWindow.xaml

@@ -14,6 +14,7 @@
     FontFamily="/PicView;component/Themes/Resources/fonts/#Roboto"
     Foreground="{StaticResource MainColorBrush}"
     Style="{DynamicResource MyWindowStyle}"
+    WindowStartupLocation="CenterOwner"
     mc:Ignorable="d">
     <Window.Resources>
         <Style x:Key="txtItalic" TargetType="TextBlock">

+ 1 - 0
PicView/Views/Windows/SettingsWindow.xaml

@@ -13,6 +13,7 @@
     ResizeMode="CanMinimize"
     SizeToContent="Height"
     Style="{DynamicResource MyWindowStyle}"
+    WindowStartupLocation="CenterOwner"
     mc:Ignorable="d">
     <Window.Resources>
         <ResourceDictionary Source="\Themes\Styles\ComboBox.xaml" />