Retail_manager/RMWPFUserInterface/Views/LoginView.xaml
s459315 7bbae1b17c Fixed bug in LoginView
fixed never appering erorr message in login form
2022-07-14 19:41:13 +02:00

55 lines
2.4 KiB
XML

<UserControl x:Class="RMWPFUserInterface.Views.LoginView"
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:RMWPFUserInterface.Views"
mc:Ignorable="d" Background="White" FontSize="24"
d:DesignHeight="425" d:DesignWidth="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="0 0 0 20"
HorizontalAlignment="Center" FontSize="64" FontFamily="Segoe UI Light">
Login Form
</TextBlock>
<!-- Error Message Row-->
<TextBlock x:Name="ErrorMessage" Visibility="{Binding IsErrorVisible, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
Margin="0 0 0 20"
MaxWidth="300"
TextWrapping="Wrap" Foreground="Red"/>
<!-- Username row -->
<TextBlock Grid.Row="2" Grid.Column="1" Margin="0 0 10 20">
Username:
</TextBlock>
<TextBox x:Name="UserName" Grid.Row="2" Grid.Column="2" MinWidth="350" Margin="0 0 0 10"/>
<!-- Password row -->
<TextBlock Grid.Row="3" Grid.Column="1" Margin="0 0 10 20">
Password:
</TextBlock>
<PasswordBox x:Name="Password" Grid.Row="3" Grid.Column="2" MinWidth="350" Margin="0 0 0 10"/>
<!-- Login button -->
<Button Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" Padding="20 5"
HorizontalAlignment="Center" x:Name="LogIn">
Log in
</Button>
</Grid>
</UserControl>