From d2c021c5b70234f656f6c552e36ee85334e0a0fa Mon Sep 17 00:00:00 2001
From: Natlinux <97396587+Natlinux81@users.noreply.github.com>
Date: Sat, 12 Nov 2022 23:25:38 +0100
Subject: [PATCH] Navbar prototype
---
Apollon.WPF/App.xaml | 1 +
Apollon.WPF/MainWindow.xaml | 2 +-
Apollon.WPF/MainWindow.xaml.cs | 1 +
Apollon.WPF/Themes/NavBarTemplate.xaml | 209 ++++++++++
...datesViewModel.cs => NameListViewModel.cs} | 2 +-
.../ViewModels/NavigationBarViewModel.cs | 16 +
Apollon.WPF/ViewModels/OverviewViewModel.cs | 2 +-
Apollon.WPF/Views/Components/NavBarView.xaml | 379 ++++++++++++++++++
.../Views/Components/NavBarView.xaml.cs | 28 ++
.../Views/Components/TournamentDetails.xaml | 2 +-
.../{RootdatesView.xaml => NameListView.xaml} | 0
...datesView.xaml.cs => NameListView.xaml.cs} | 0
Apollon.WPF/Views/TournamentDetailsView.xaml | 20 +-
13 files changed, 650 insertions(+), 12 deletions(-)
create mode 100644 Apollon.WPF/Themes/NavBarTemplate.xaml
rename Apollon.WPF/ViewModels/{RootdatesViewModel.cs => NameListViewModel.cs} (76%)
create mode 100644 Apollon.WPF/ViewModels/NavigationBarViewModel.cs
create mode 100644 Apollon.WPF/Views/Components/NavBarView.xaml
create mode 100644 Apollon.WPF/Views/Components/NavBarView.xaml.cs
rename Apollon.WPF/Views/{RootdatesView.xaml => NameListView.xaml} (100%)
rename Apollon.WPF/Views/{RootdatesView.xaml.cs => NameListView.xaml.cs} (100%)
diff --git a/Apollon.WPF/App.xaml b/Apollon.WPF/App.xaml
index 88905b4..493b04a 100644
--- a/Apollon.WPF/App.xaml
+++ b/Apollon.WPF/App.xaml
@@ -8,6 +8,7 @@
+
diff --git a/Apollon.WPF/MainWindow.xaml b/Apollon.WPF/MainWindow.xaml
index 8e04884..3bf256c 100644
--- a/Apollon.WPF/MainWindow.xaml
+++ b/Apollon.WPF/MainWindow.xaml
@@ -56,7 +56,7 @@
-
+
diff --git a/Apollon.WPF/MainWindow.xaml.cs b/Apollon.WPF/MainWindow.xaml.cs
index f637aa2..d3fe678 100644
--- a/Apollon.WPF/MainWindow.xaml.cs
+++ b/Apollon.WPF/MainWindow.xaml.cs
@@ -49,6 +49,7 @@ namespace Apollon.WPF
else
this.WindowState = WindowState.Maximized;
+ this.Topmost = true;
}
diff --git a/Apollon.WPF/Themes/NavBarTemplate.xaml b/Apollon.WPF/Themes/NavBarTemplate.xaml
new file mode 100644
index 0000000..bbc0114
--- /dev/null
+++ b/Apollon.WPF/Themes/NavBarTemplate.xaml
@@ -0,0 +1,209 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Apollon.WPF/ViewModels/RootdatesViewModel.cs b/Apollon.WPF/ViewModels/NameListViewModel.cs
similarity index 76%
rename from Apollon.WPF/ViewModels/RootdatesViewModel.cs
rename to Apollon.WPF/ViewModels/NameListViewModel.cs
index 5597346..0cace66 100644
--- a/Apollon.WPF/ViewModels/RootdatesViewModel.cs
+++ b/Apollon.WPF/ViewModels/NameListViewModel.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Apollon.WPF.ViewModels
{
- public class RootdatesViewModel : ViewModelBase
+ public class NameListViewModel : ViewModelBase
{
}
}
diff --git a/Apollon.WPF/ViewModels/NavigationBarViewModel.cs b/Apollon.WPF/ViewModels/NavigationBarViewModel.cs
new file mode 100644
index 0000000..b83533f
--- /dev/null
+++ b/Apollon.WPF/ViewModels/NavigationBarViewModel.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Input;
+
+namespace Apollon.WPF.ViewModels
+{
+ public class NavigationBarViewModel : ViewModelBase
+ {
+ public ICommand NavigateNameListCommand { get;}
+ public ICommand GroupsCommand { get;}
+
+ }
+}
diff --git a/Apollon.WPF/ViewModels/OverviewViewModel.cs b/Apollon.WPF/ViewModels/OverviewViewModel.cs
index 3ce5dac..7374a5e 100644
--- a/Apollon.WPF/ViewModels/OverviewViewModel.cs
+++ b/Apollon.WPF/ViewModels/OverviewViewModel.cs
@@ -58,7 +58,7 @@ namespace Apollon.WPF.ViewModels
LoadTournamentsCommand = new LoadTournamentsCommand(this, tournamentStore);
AddTournamentCommand = new OpenAddTournamentCommand(tournamentStore, modalNavigationStore, navigationStore, selectedTournamentStore);
- NavigateNameListCommand = new NavigateCommand(navigationStore, () => new RootdatesViewModel());
+ NavigateNameListCommand = new NavigateCommand(navigationStore, () => new NameListViewModel());
}
diff --git a/Apollon.WPF/Views/Components/NavBarView.xaml b/Apollon.WPF/Views/Components/NavBarView.xaml
new file mode 100644
index 0000000..7a650c2
--- /dev/null
+++ b/Apollon.WPF/Views/Components/NavBarView.xaml
@@ -0,0 +1,379 @@
+
+
+
+
+
+
diff --git a/Apollon.WPF/Views/Components/NavBarView.xaml.cs b/Apollon.WPF/Views/Components/NavBarView.xaml.cs
new file mode 100644
index 0000000..f975869
--- /dev/null
+++ b/Apollon.WPF/Views/Components/NavBarView.xaml.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace Apollon.WPF.Views.Components
+{
+ ///
+ /// Interaction logic for NavBarView.xaml
+ ///
+ public partial class NavBarView : UserControl
+ {
+ public NavBarView()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Apollon.WPF/Views/Components/TournamentDetails.xaml b/Apollon.WPF/Views/Components/TournamentDetails.xaml
index 20e78e7..271cb1d 100644
--- a/Apollon.WPF/Views/Components/TournamentDetails.xaml
+++ b/Apollon.WPF/Views/Components/TournamentDetails.xaml
@@ -9,7 +9,7 @@
-
+
-
+ mc:Ignorable="d">
+
-
-
+
+
-
-
+
+
+
-
+
+