Display AddModal
This commit is contained in:
@@ -4,85 +4,113 @@
|
||||
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="450" d:DesignWidth="800">
|
||||
<Grid Height="450">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*" MaxWidth="250"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0">
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="180"/>
|
||||
<ColumnDefinition Width="400"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Veranstalter: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Tourniername: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Kategorie: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Startdatum: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Enddatum: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Veranstaltungsort: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBox Text="{Binding Organisation}"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 15 0 0"
|
||||
Padding="2"/>
|
||||
<TextBox Text="{Binding Tournamentname}"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 20 0 0"
|
||||
Padding="2"
|
||||
/>
|
||||
<ComboBox ItemsSource="{Binding Category}"
|
||||
Margin="0 20 0 15"/>
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="Turniername: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="Kategorie: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="Startdatum: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="4"
|
||||
Text="Enddatum: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="5"
|
||||
Text="Veranstaltungsort: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
|
||||
<DatePicker MaxWidth="150"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<DatePicker MaxWidth="150"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<TextBox Text="{Binding Location}"
|
||||
TextAlignment="Center"
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Organisation}"
|
||||
FontFamily="Arial"
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
Background="LightGray"
|
||||
VerticalContentAlignment="Center"/>
|
||||
<TextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tournamentname}"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 20 0 0"/>
|
||||
</StackPanel>
|
||||
<WrapPanel Grid.Row="1"
|
||||
Grid.ColumnSpan="2"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="20">
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="LightGray"/>
|
||||
<ComboBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding Category}"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"/>
|
||||
|
||||
<DatePicker Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
Width="160"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<DatePicker Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
Width="160"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<TextBox Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Location}"
|
||||
FontFamily="Arial"
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="LightGray"/>
|
||||
|
||||
<Grid Grid.Row="6"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0 30 0 0"
|
||||
Width="450"
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="Speichern"
|
||||
Command="{Binding SubmitCommand}"
|
||||
Style="{StaticResource ModernButton}"
|
||||
Width="100"
|
||||
Height="25"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0 0 80 0"
|
||||
IsEnabled="{Binding CanSubmit}">
|
||||
Width="120"
|
||||
Height="35"
|
||||
FontSize="16"
|
||||
IsEnabled="{Binding CanSubmit}">
|
||||
</Button>
|
||||
<Button Content="Abbrechen"
|
||||
Command="{Binding CancelCommand}"
|
||||
Style="{StaticResource ModernButton}"
|
||||
Width="100"
|
||||
Height="25"/>
|
||||
</WrapPanel>
|
||||
|
||||
</Grid>
|
||||
Width="120"
|
||||
Height="35"
|
||||
FontSize="16"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Cursor="Hand"
|
||||
ToolTip="Löschen"
|
||||
Command="{Binding DeleteCommand}">
|
||||
<iconPacks:PackIconMaterial Kind="TrashCan"
|
||||
VerticalAlignment="Center"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
CornerRadius="10">
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="erstelle eine neues Tournier oder wähle ein vorhandenes Tournier um es zu bearbeiten!"
|
||||
<TextBlock Text="klicke auf neues Turnier erstellen oder wähle ein vorhandenes Turnier um es zu bearbeiten!"
|
||||
TextAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
|
||||
Reference in New Issue
Block a user