From 6cb001c0f3e74ee61f920d581b86a58c5224622e Mon Sep 17 00:00:00 2001 From: mat1jaczyyy Date: Mon, 2 Sep 2019 00:15:49 +0200 Subject: [PATCH] PreferencesWindow: Minimize --- Apollo/Windows/PreferencesWindow.cs | 6 ++++-- Apollo/Windows/PreferencesWindow.xaml | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Apollo/Windows/PreferencesWindow.cs b/Apollo/Windows/PreferencesWindow.cs index 567e8f46..5c2feea5 100644 --- a/Apollo/Windows/PreferencesWindow.cs +++ b/Apollo/Windows/PreferencesWindow.cs @@ -194,8 +194,6 @@ void Unloaded(object sender, EventArgs e) { fade.Dispose(); } - void MoveWindow(object sender, PointerPressedEventArgs e) => BeginMoveDrag(); - void AlwaysOnTop_Changed(object sender, EventArgs e) { Preferences.AlwaysOnTop = AlwaysOnTop.IsChecked.Value; Activate(); @@ -319,6 +317,10 @@ async void Window_KeyDown(object sender, KeyEventArgs e) { Program.Project?.Undo.HandleKey(e); } + void MoveWindow(object sender, PointerPressedEventArgs e) => BeginMoveDrag(); + + void Minimize() => WindowState = WindowState.Minimized; + public static void Create(Window owner) { if (Preferences.Window == null) { Preferences.Window = new PreferencesWindow() {Owner = owner}; diff --git a/Apollo/Windows/PreferencesWindow.xaml b/Apollo/Windows/PreferencesWindow.xaml index 9b14bbf7..c13b3ea4 100644 --- a/Apollo/Windows/PreferencesWindow.xaml +++ b/Apollo/Windows/PreferencesWindow.xaml @@ -15,7 +15,10 @@ - + + + +