test navbar

This commit is contained in:
Natlinux81
2022-09-01 01:50:55 +02:00
parent f395258832
commit e2f41a8f43
8 changed files with 156 additions and 9 deletions

View File

@@ -21,8 +21,6 @@ namespace Apollon.EntityFramework.Commands
public async Task Execute(Tournament tournament)
{
throw new Exception();
using (TournamentsDbContext context = _contextFactory.Create())
{
TournamentDto tournamentDto = new TournamentDto()

View File

@@ -18,4 +18,8 @@
<ProjectReference Include="..\Apollon.EntityFramework\Apollon.EntityFramework.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Images\Logos\" />
</ItemGroup>
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,86 @@
<UserControl x:Class="Apollon.WPF.Views.Components.TournamentDetails"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition MaxWidth="650"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0"
Source="D:\Projekte\Apollon\Apollon\Apollon.WPF\Images\Logos\logo_klein_DSB.jpg"
Width="80"
VerticalAlignment="Center"/>
<StackPanel Grid.Column="1">
<WrapPanel HorizontalAlignment="Center">
<TextBlock Text="Organisation"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="16"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="TournamentName"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="16"
Foreground="#0000a0"
Margin="10"/>
</WrapPanel>
<WrapPanel HorizontalAlignment="Center">
<TextBlock Text="Competition"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="Location"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="vom"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="StartDate"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="bis"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
<TextBlock Text="EndDate"
TextAlignment="Center"
FontFamily="Arial"
FontWeight="Bold"
FontSize="14"
Foreground="#0000a0"
Margin="10"/>
</WrapPanel>
</StackPanel>
<Image Grid.Column="2"
Source="D:\Projekte\Apollon\Apollon\Apollon.WPF\Images\TargetField.png"
Width="70"
VerticalAlignment="Center"/>
</Grid>
</UserControl>

View File

@@ -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
{
/// <summary>
/// Interaction logic for TournamentDetails.xaml
/// </summary>
public partial class TournamentDetails : UserControl
{
public TournamentDetails()
{
InitializeComponent();
}
}
}

View File

@@ -7,8 +7,7 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Border BorderThickness="4"
BorderBrush="#0000a0"
<Border BorderThickness="2"
CornerRadius="5"
Grid.RowSpan="2"
Grid.ColumnSpan="3">

View File

@@ -4,11 +4,43 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Apollon.WPF.Views"
xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock Text="Navbar"
FontSize="35"
Padding="100"/>
<Grid Margin="45">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Width="35"
Height="35"
Background="Transparent"
BorderThickness="0"
HorizontalAlignment="Left"
Margin="5">
<iconPacks:PackIconMaterial Kind="ArrowLeft"
Height="25"
Width="35"
Foreground="#0000a0"/>
</Button>
<components:TournamentDetails Grid.Column="1"/>
<StackPanel Grid.Row="1">
<Button Height="45"
Background="Transparent"/>
<Button Height="45"
Background="Transparent"/>
<Button Height="45"
Background="Transparent"/>
<Button Height="45"
Background="Transparent"/>
</StackPanel>
</Grid>
</UserControl>