ein paar änderungen in XAML (fix bug)
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
Background="#FFE3F2FD"
|
Background="#FFE3F2FD"
|
||||||
Orientation="Vertical">
|
Orientation="Vertical">
|
||||||
|
|
||||||
<!-- Home button (selected) -->
|
|
||||||
<Button x:Name="HomeButton"
|
<Button x:Name="HomeButton"
|
||||||
Height="50"
|
Height="50"
|
||||||
Margin="5"
|
Margin="5"
|
||||||
@@ -76,7 +76,6 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
<Button x:Name="SettingsButton"
|
<Button x:Name="SettingsButton"
|
||||||
Height="50"
|
Height="50"
|
||||||
Margin="5"
|
Margin="5"
|
||||||
@@ -91,16 +90,32 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button x:Name="LogoutButton"
|
||||||
|
Height="50"
|
||||||
|
Margin="5"
|
||||||
|
Background="#FFEBEB"
|
||||||
|
BorderBrush="#FFB71C1C"
|
||||||
|
Foreground="#D32F2F"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Click="LogoutButton_Click">
|
||||||
|
<StackPanel Orientation="Horizontal"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<iconPacks:PackIconMaterial Kind="Logout"
|
||||||
|
Width="20"
|
||||||
|
Height="20"
|
||||||
|
Margin="0,0,10,0"/>
|
||||||
|
<TextBlock Text="Abmelden"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
<ScrollViewer Grid.Row="1"
|
<ScrollViewer Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="30"
|
Margin="30"
|
||||||
VerticalScrollBarVisibility="Auto">
|
VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel Margin="0,0,0,30">
|
<StackPanel Margin="0,0,0,30">
|
||||||
|
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Margin="0,0,0,30">
|
Margin="0,0,0,30">
|
||||||
<iconPacks:PackIconMaterial Kind="AirplaneTakeoff"
|
<iconPacks:PackIconMaterial Kind="AirplaneTakeoff"
|
||||||
@@ -117,7 +132,6 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
<Border Background="#F8F9FA"
|
<Border Background="#F8F9FA"
|
||||||
Padding="25"
|
Padding="25"
|
||||||
CornerRadius="8"
|
CornerRadius="8"
|
||||||
@@ -128,7 +142,6 @@
|
|||||||
TextWrapping="Wrap"/>
|
TextWrapping="Wrap"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
|
|
||||||
<TextBlock Text="Unsere Services"
|
<TextBlock Text="Unsere Services"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
@@ -140,7 +153,6 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
|
||||||
<Border Grid.Column="0"
|
<Border Grid.Column="0"
|
||||||
Margin="0,0,15,0"
|
Margin="0,0,15,0"
|
||||||
Padding="20"
|
Padding="20"
|
||||||
@@ -162,7 +174,6 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
|
|
||||||
<Border Grid.Column="1"
|
<Border Grid.Column="1"
|
||||||
Padding="20"
|
Padding="20"
|
||||||
Background="#E8F5E8"
|
Background="#E8F5E8"
|
||||||
@@ -184,13 +195,11 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Margin="0,30,0,0">
|
Margin="0,40,0,0">
|
||||||
<Button Width="160"
|
<Button Width="200"
|
||||||
Height="45"
|
Height="50"
|
||||||
Margin="0,0,15,0"
|
|
||||||
Background="#FF1E88E5"
|
Background="#FF1E88E5"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
@@ -198,9 +207,9 @@
|
|||||||
Click="BookFlightButton_Click">
|
Click="BookFlightButton_Click">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<iconPacks:PackIconMaterial Kind="Airplane"
|
<iconPacks:PackIconMaterial Kind="Airplane"
|
||||||
Width="20"
|
Width="24"
|
||||||
Height="20"
|
Height="24"
|
||||||
Margin="0,0,8,0"/>
|
Margin="0,0,12,0"/>
|
||||||
<TextBlock Text="Jetzt Flug buchen"/>
|
<TextBlock Text="Jetzt Flug buchen"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -29,6 +29,16 @@ namespace SkyTeam
|
|||||||
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
var result = MessageBox.Show(
|
||||||
|
"Möchten Sie sich wirklich abmelden?",
|
||||||
|
"Abmelden",
|
||||||
|
MessageBoxButton.YesNo,
|
||||||
|
MessageBoxImage.Question);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,130 +4,108 @@
|
|||||||
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||||
Title="Registrierungsseite">
|
Title="Registrierungsseite">
|
||||||
|
|
||||||
<Grid Margin="20">
|
<Grid Margin="40,20">
|
||||||
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
<StackPanel Grid.Row="0"
|
<StackPanel Grid.Row="0"
|
||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Margin="0,0,0,30">
|
Margin="0,0,0,40">
|
||||||
<iconPacks:PackIconMaterial Kind="AccountPlus"
|
<iconPacks:PackIconMaterial Kind="AccountPlus"
|
||||||
Width="28"
|
Width="32"
|
||||||
Height="28"
|
Height="32"
|
||||||
Margin="0,0,10,0"/>
|
Margin="0,0,15,0"/>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="Registrieren"
|
<TextBlock Text="Registrieren"
|
||||||
FontSize="22"
|
FontSize="28"
|
||||||
FontWeight="Bold"/>
|
FontWeight="Bold"/>
|
||||||
<TextBlock Text="Erstellen Sie Ihren Sky Team Account"
|
<TextBlock Text="Erstellen Sie Ihren Sky Team Account"
|
||||||
FontSize="12"
|
FontSize="14"
|
||||||
Foreground="Gray"/>
|
Foreground="#666"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Grid Grid.Row="1"
|
|
||||||
VerticalAlignment="Center"
|
<Border Grid.Row="1"
|
||||||
HorizontalAlignment="Center">
|
Background="White"
|
||||||
|
CornerRadius="12"
|
||||||
|
Padding="40"
|
||||||
|
BorderBrush="#E0E0E0"
|
||||||
|
BorderThickness="1"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
HorizontalAlignment="Center">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
<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="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="60"/>
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="200"/>
|
<ColumnDefinition Width="220"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Label Content="Vorname:"
|
<Label Content="Vorname:"
|
||||||
Grid.Row="0"
|
Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Column="0"
|
<TextBox x:Name="FirstNameTextBox" Grid.Row="0" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
Margin="0,0,10,10"/>
|
|
||||||
<TextBox x:Name="FirstNameTextBox"
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="0,0,0,10"/>
|
|
||||||
|
|
||||||
<Label Content="Nachname:"
|
<Label Content="Nachname:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Row="1"
|
<TextBox x:Name="LastNameTextBox" Grid.Row="1" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
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="E-Mail:"
|
<Label Content="E-Mail:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Row="2"
|
<TextBox x:Name="EmailTextBox" Grid.Row="2" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
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="Telefonnummer:"
|
<Label Content="Telefonnummer:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Row="3"
|
<TextBox x:Name="PhoneNumberTextBox" Grid.Row="3" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
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="Stadt:"
|
<Label Content="Stadt:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Row="4"
|
<TextBox x:Name="CityTextBox" Grid.Row="4" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
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="Land:"
|
<Label Content="Land:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||||
Grid.Row="5"
|
<TextBox x:Name="CountryTextBox" Grid.Row="5" Grid.Column="1" Margin="0,0,0,8"/>
|
||||||
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="Passwort:"
|
<Label Content="Passwort:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,0"/>
|
||||||
Grid.Row="6"
|
<PasswordBox x:Name="PasswordBox" Grid.Row="6" VerticalAlignment="Top" Margin="1,4,0,0" Height="21" Grid.Column="1"/>
|
||||||
Grid.Column="0"
|
|
||||||
Margin="0,0,10,20"/>
|
|
||||||
|
|
||||||
<PasswordBox x:Name="PasswordBox"
|
<!-- Buttons - FORCED DOWN with extra rows -->
|
||||||
Grid.Row="7"
|
<StackPanel Grid.Row="9"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Margin="0,0,0,20"/>
|
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>
|
||||||
Grid.ColumnSpan="2"
|
</Border>
|
||||||
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>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace SkyTeam
|
|||||||
{
|
{
|
||||||
_isDark = true;
|
_isDark = true;
|
||||||
DarkModeToggle.Content = "An";
|
DarkModeToggle.Content = "An";
|
||||||
// Apply dark theme to parent window
|
|
||||||
if (Window.GetWindow(this) is MainWindow mainWindow)
|
if (Window.GetWindow(this) is MainWindow mainWindow)
|
||||||
{
|
{
|
||||||
mainWindow.Background = Brushes.Black;
|
mainWindow.Background = Brushes.Black;
|
||||||
|
|||||||
Reference in New Issue
Block a user