ein paar änderungen in XAML (fix bug)

This commit is contained in:
younes elhaddoury
2026-01-29 13:34:07 +01:00
parent 258fbd17e6
commit 53a1e036e1
4 changed files with 110 additions and 113 deletions

View File

@@ -4,130 +4,108 @@
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
Title="Registrierungsseite">
<Grid Margin="20">
<Grid Margin="40,20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Header -->
<StackPanel Grid.Row="0"
Orientation="Horizontal"
VerticalAlignment="Center"
Margin="0,0,0,30">
Margin="0,0,0,40">
<iconPacks:PackIconMaterial Kind="AccountPlus"
Width="28"
Height="28"
Margin="0,0,10,0"/>
Width="32"
Height="32"
Margin="0,0,15,0"/>
<StackPanel>
<TextBlock Text="Registrieren"
FontSize="22"
FontSize="28"
FontWeight="Bold"/>
<TextBlock Text="Erstellen Sie Ihren Sky Team Account"
FontSize="12"
Foreground="Gray"/>
FontSize="14"
Foreground="#666"/>
</StackPanel>
</StackPanel>
<Grid Grid.Row="1"
VerticalAlignment="Center"
HorizontalAlignment="Center">
<Border Grid.Row="1"
Background="White"
CornerRadius="12"
Padding="40"
BorderBrush="#E0E0E0"
BorderThickness="1"
VerticalAlignment="Center"
HorizontalAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="220"/>
</Grid.ColumnDefinitions>
<Label Content="Vorname:"
Grid.Row="0"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="FirstNameTextBox"
Grid.Row="0"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="Vorname:"
Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="FirstNameTextBox" Grid.Row="0" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="Nachname:"
Grid.Row="1"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="LastNameTextBox"
Grid.Row="1"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="Nachname:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="LastNameTextBox" Grid.Row="1" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="E-Mail:"
Grid.Row="2"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="EmailTextBox"
Grid.Row="2"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="E-Mail:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="EmailTextBox" Grid.Row="2" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="Telefonnummer:"
Grid.Row="3"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="PhoneNumberTextBox"
Grid.Row="3"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="Telefonnummer:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="PhoneNumberTextBox" Grid.Row="3" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="Stadt:"
Grid.Row="4"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="CityTextBox"
Grid.Row="4"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="Stadt:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="CityTextBox" Grid.Row="4" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="Land:"
Grid.Row="5"
Grid.Column="0"
Margin="0,0,10,10"/>
<TextBox x:Name="CountryTextBox"
Grid.Row="5"
Grid.Column="1"
Margin="0,0,0,10"/>
<Label Content="Land:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
<TextBox x:Name="CountryTextBox" Grid.Row="5" Grid.Column="1" Margin="0,0,0,8"/>
<Label Content="Passwort:"
Grid.Row="6"
Grid.Column="0"
Margin="0,0,10,20"/>
<Label Content="Passwort:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,0"/>
<PasswordBox x:Name="PasswordBox" Grid.Row="6" VerticalAlignment="Top" Margin="1,4,0,0" Height="21" Grid.Column="1"/>
<PasswordBox x:Name="PasswordBox"
Grid.Row="7"
Grid.ColumnSpan="2"
Margin="0,0,0,20"/>
<!-- Buttons - FORCED DOWN with extra rows -->
<StackPanel Grid.Row="9"
Grid.ColumnSpan="2"
Orientation="Horizontal"
HorizontalAlignment="Center">
<Button Content="Registrieren"
Width="130"
Height="42"
Margin="0,0,20,0"
Background="#FF1E88E5"
Foreground="White"
FontWeight="Bold"
FontSize="14"
Click="RegisterButton_Click"/>
<Button Content="Abbrechen"
Width="130"
Height="42"
Background="#F5F5F5"
BorderBrush="#DDD"
Click="CancelButton_Click"/>
</StackPanel>
<StackPanel Grid.Row="8"
Grid.ColumnSpan="2"
Orientation="Horizontal"
HorizontalAlignment="Center">
<Button Content="Registrieren"
Width="120"
Margin="0,0,20,0"
Click="RegisterButton_Click"/>
<Button Content="Abbrechen"
Width="120"
Click="CancelButton_Click"/>
</StackPanel>
</Grid>
</Grid>
</Border>
</Grid>
</Page>