diff --git a/GUI/MainWindow.xaml b/GUI/MainWindow.xaml
index 68824a02..01953ec8 100644
--- a/GUI/MainWindow.xaml
+++ b/GUI/MainWindow.xaml
@@ -380,6 +380,7 @@
+
@@ -421,6 +422,7 @@
+
diff --git a/GUI/MainWindow.xaml.cs b/GUI/MainWindow.xaml.cs
index 3c164448..31dfefa6 100644
--- a/GUI/MainWindow.xaml.cs
+++ b/GUI/MainWindow.xaml.cs
@@ -1321,6 +1321,16 @@ namespace GARbro.GUI
dialog.ShowDialog();
}
+ private void ScaleImageExec (object sender, ExecutedRoutedEventArgs e)
+ {
+ DownScaleImage.Value = !DownScaleImage.Get();
+ }
+
+ private void CanExecuteScaleImage (object sender, CanExecuteRoutedEventArgs e)
+ {
+ e.CanExecute = ImageCanvas.Source != null;
+ }
+
private void CanExecuteAlways (object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
@@ -1553,5 +1563,6 @@ namespace GARbro.GUI
public static readonly RoutedCommand TroubleShooting = new RoutedCommand();
public static readonly RoutedCommand Descend = new RoutedCommand();
public static readonly RoutedCommand Ascend = new RoutedCommand();
+ public static readonly RoutedCommand ScaleImage = new RoutedCommand();
}
}