diff --git a/Kreditrechner/App.xaml b/Kreditrechner/App.xaml
index 37e0d93..11e69cf 100644
--- a/Kreditrechner/App.xaml
+++ b/Kreditrechner/App.xaml
@@ -11,21 +11,41 @@
-
+
-
+
+
+
+
+
+
+
diff --git a/Kreditrechner/Fonts/Dosis.ttf b/Kreditrechner/Fonts/Dosis.ttf
new file mode 100644
index 0000000..49fe002
Binary files /dev/null and b/Kreditrechner/Fonts/Dosis.ttf differ
diff --git a/Kreditrechner/Kreditrechner.csproj b/Kreditrechner/Kreditrechner.csproj
index c0c5b52..886d138 100644
--- a/Kreditrechner/Kreditrechner.csproj
+++ b/Kreditrechner/Kreditrechner.csproj
@@ -163,6 +163,7 @@
+
SettingsSingleFileGenerator
diff --git a/Kreditrechner/MainWindow.xaml b/Kreditrechner/MainWindow.xaml
index 8e940c0..c8d7862 100644
--- a/Kreditrechner/MainWindow.xaml
+++ b/Kreditrechner/MainWindow.xaml
@@ -11,7 +11,11 @@
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
mc:Ignorable="d"
Title="{x:Static loc:Resources.Title}" MinHeight="450" Height="650" MinWidth="1200" Width="1200" WindowStartupLocation="CenterScreen"
- d:DataContext="{d:DesignInstance vm:MainWindowViewModel, IsDesignTimeCreatable=True}">
+ d:DataContext="{d:DesignInstance vm:MainWindowViewModel, IsDesignTimeCreatable=True}"
+ Background="#181735"
+ WindowStyle="None"
+ ResizeMode="NoResize"
+ AllowsTransparency="True">
@@ -20,7 +24,7 @@
-
+
@@ -37,34 +41,54 @@
-
+
+
+
+
+
+
+
+
+
diff --git a/Kreditrechner/MainWindow.xaml.cs b/Kreditrechner/MainWindow.xaml.cs
index f9d12f4..29fec52 100644
--- a/Kreditrechner/MainWindow.xaml.cs
+++ b/Kreditrechner/MainWindow.xaml.cs
@@ -31,13 +31,13 @@ public MainWindow()
DataContext = viewModel;
viewModel.MinimumRepaymentEvent += (sender, eventargs) => ShowMinimumRepaymentView();
}
-
+
private void InfoClicked(object sender, RoutedEventArgs e)
{
string messageBoxText = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright + "\n" +
"Version: " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
- MessageBox.Show(messageBoxText , "Info", MessageBoxButton.OK);
+ MessageBox.Show(messageBoxText, "Info", MessageBoxButton.OK);
}
private void ShowMinimumRepaymentView()
@@ -46,5 +46,36 @@ private void ShowMinimumRepaymentView()
win.Owner = this;
win.ShowDialog();
}
+
+ private void Menu_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.LeftButton == MouseButtonState.Pressed)
+ {
+ DragMove();
+ }
+ }
+
+ private void OnCloseButtonClick(object sender, RoutedEventArgs e)
+ {
+ Application.Current.Shutdown();
+ }
+
+ private void OnMaximizeButtonClick(object sender, RoutedEventArgs e)
+ {
+ if (WindowState == WindowState.Maximized)
+ {
+ WindowState = WindowState.Normal;
+ }
+
+ else
+ {
+ WindowState = WindowState.Maximized;
+ }
+ }
+
+ private void OnMinimizeButtonClick(object sender, RoutedEventArgs e)
+ {
+ WindowState = WindowState.Minimized;
+ }
}
}
diff --git a/Kreditrechner/View/InstallmentPlanView.xaml b/Kreditrechner/View/InstallmentPlanView.xaml
index 3ab7c8d..4bdadca 100644
--- a/Kreditrechner/View/InstallmentPlanView.xaml
+++ b/Kreditrechner/View/InstallmentPlanView.xaml
@@ -8,13 +8,18 @@
xmlns:vc="clr-namespace:Kreditrechner.ValueConverter"
xmlns:loc="clr-namespace:Kreditrechner.Properties"
mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance vm:InstallmentPlanViewModel, IsDesignTimeCreatable=True}">
+ d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance vm:InstallmentPlanViewModel, IsDesignTimeCreatable=True}"
+ Background="#181735">
+
@@ -23,14 +28,21 @@
-
-