diff --git a/SketchNow/Converters/DivisionMathConverter.cs b/SketchNow/Converters/DivisionMathConverter.cs
new file mode 100644
index 0000000..3010979
--- /dev/null
+++ b/SketchNow/Converters/DivisionMathConverter.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+
+namespace SketchNow.Converters
+{
+ public class DivisionMathConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ if (value == null || parameter == null)
+ return null;
+
+ double number;
+ double divisor;
+
+ if (double.TryParse(value.ToString(), out number) && double.TryParse(parameter.ToString(), out divisor))
+ {
+ return number / divisor;
+ }
+
+ return null;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/SketchNow/Views/MainWindow.xaml b/SketchNow/Views/MainWindow.xaml
index a078523..35f352e 100644
--- a/SketchNow/Views/MainWindow.xaml
+++ b/SketchNow/Views/MainWindow.xaml
@@ -9,7 +9,7 @@
xmlns:properties="clr-namespace:SketchNow.Properties"
xmlns:system="clr-namespace:System;assembly=System.Runtime"
xmlns:views="clr-namespace:SketchNow.Views"
- xmlns:vms="clr-namespace:SketchNow.ViewModels"
+ xmlns:vms="clr-namespace:SketchNow.ViewModels" xmlns:valueConverters="http://schemas.superdev.ch/valueconverters/2016/xaml"
Title="SketchNow"
Width="800"
Height="450"
@@ -76,8 +76,11 @@
+
+
+
-
+
\ No newline at end of file
diff --git a/SketchNow/Views/PageNavigationView.xaml b/SketchNow/Views/PageNavigationView.xaml
index cfb68c5..a5d3ea7 100644
--- a/SketchNow/Views/PageNavigationView.xaml
+++ b/SketchNow/Views/PageNavigationView.xaml
@@ -5,18 +5,22 @@
xmlns:local="clr-namespace:SketchNow.Views"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:valueConverters="http://schemas.superdev.ch/valueconverters/2016/xaml"
xmlns:vms="clr-namespace:SketchNow.ViewModels"
d:DataContext="{d:DesignInstance IsDesignTimeCreatable=False,
Type={x:Type vms:MainWindowViewModel}}"
d:DesignHeight="300"
d:DesignWidth="800"
mc:Ignorable="d">
+
+
+
+ Visibility="{Binding IsMultiPageMode, Converter={StaticResource BoolToVisibilityConverter}}">