# Conflicts: # PrototypWPFHAG/MainWindow.xaml # PrototypWPFHAG/MainWindow.xaml.cs
53 lines
2.5 KiB
XML
53 lines
2.5 KiB
XML
<mah:MetroWindow xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
x:Class="PrototypWPFHAG.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:PrototypWPFHAG"
|
|
mc:Ignorable="d"
|
|
Title="Prototype"
|
|
Height="450"
|
|
Width="800"
|
|
TitleCharacterCasing="Normal"
|
|
WindowTitleBrush="Firebrick"
|
|
Icon="pack://application:,,,/Images/databaseicon.png"
|
|
ResizeMode="CanResizeWithGrip"
|
|
Loaded="Window_Loaded">
|
|
<Grid>
|
|
<Border BorderBrush="Firebrick" BorderThickness="3" Padding="20">
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<!-- Username -->
|
|
<TextBlock Text="Benutzername" Margin="0,10,0,0" FontSize="14" FontWeight="Bold" />
|
|
<TextBox Width="200" Height="30" Margin="0,5,0,0" x:Name="UsernameTextBox" />
|
|
|
|
<TextBlock Text="Passwort" Margin="0,10,0,0" FontSize="14" FontWeight="Bold" />
|
|
<Grid>
|
|
<!-- Passwortbox (hidden when Password is visible) -->
|
|
<PasswordBox Width="170" Height="30" Margin="0,5,34,0" x:Name="PasswordTextBox"
|
|
PasswordChanged="PasswordTextBox_PasswordChanged"/>
|
|
|
|
<<<<<<< HEAD
|
|
<!-- 登录按钮 -->
|
|
<Button Height="30" Width="100" Content="Log in" Margin="0,20,0,0" Click="LoginButton_Click" />
|
|
=======
|
|
<!-- Textbox for visible password (hidden at default) -->
|
|
<TextBox Width="170" Height="30" Margin="0,5,34,0" x:Name="PasswordVisibleTextBox"
|
|
Visibility="Collapsed" IsReadOnly="True"/>
|
|
|
|
<!-- Button with Eye-Icon -->
|
|
<Button Width="30" Height="30" Margin="175,5,0,0" Content="👁"
|
|
Click="ShowPasswordButton_Click"/>
|
|
</Grid>
|
|
|
|
|
|
<!-- Login Button -->
|
|
<Button Height="30" Width="100" Content="Zur Suche" Margin="0,20,0,0"
|
|
Click="loginButton_Click" IsDefault="True" />
|
|
>>>>>>> 1195250b98172d34b8c49b85a81c21d1f26cdbac
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</mah:MetroWindow>
|