need NavigationService

This commit is contained in:
Natlinux
2022-11-27 15:46:02 +01:00
parent d45c0cc1d5
commit 3911dd66e8
4 changed files with 12 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Apollon.WPF.Commands; using Apollon.Domain.Models;
using Apollon.WPF.Commands;
using Apollon.WPF.Stores; using Apollon.WPF.Stores;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -11,6 +12,7 @@ namespace Apollon.WPF.ViewModels
{ {
public class GroupsViewModel : ViewModelBase public class GroupsViewModel : ViewModelBase
{ {
public TournamentDetailsViewModel TournamentDetailsViewModel { get; } public TournamentDetailsViewModel TournamentDetailsViewModel { get; }
public ICommand NavigateOverviewCommand { get; } public ICommand NavigateOverviewCommand { get; }

View File

@@ -10,10 +10,9 @@ namespace Apollon.WPF.ViewModels
{ {
public class NavBarPreparationViewModel : ViewModelBase public class NavBarPreparationViewModel : ViewModelBase
{ {
public ICommand NavigateArchersCommand { get;} public ICommand NavigateOverviewCommand { get;}
public ICommand NavigateGroupsCommand { get;} public ICommand NavigateGroupsCommand { get;}
public ICommand NavigateClassesCommand { get;} public ICommand NavigateClassesCommand { get;}
public ICommand NavigateArchersCommand { get;}
} }
} }

View File

@@ -148,7 +148,7 @@
Grid.Column="1" Grid.Column="1"
VerticalAlignment="Center"> VerticalAlignment="Center">
<TextBox <TextBox
Text="{Binding Rounds}" Text="{Binding Groups}"
FontFamily="Arial" FontFamily="Arial"
FontSize="16" FontSize="16"
Height="30" Height="30"

View File

@@ -23,7 +23,11 @@
BorderBrush="#0000a0" BorderBrush="#0000a0"
BorderThickness="1" BorderThickness="1"
CornerRadius="2"> CornerRadius="2">
<TextBlock Text="Gruppen" VerticalAlignment="Center" HorizontalAlignment="Center"/> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="Gruppen" />
<!--<TextBlock Text="{Binding Groups}"/>-->
</StackPanel>
</Border> </Border>
<components:TournamentDetails Grid.Column="1" Margin="0,35,0,10" HorizontalAlignment="Center" DataContext="{Binding TournamentDetailsViewModel}"/> <components:TournamentDetails Grid.Column="1" Margin="0,35,0,10" HorizontalAlignment="Center" DataContext="{Binding TournamentDetailsViewModel}"/>