demo_trade/Views/LoginControl.axaml
2024-10-04 15:41:04 +03:00

23 lines
1.1 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
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:rxui="http://reactiveui.net"
xmlns:vm="using:demo_trade.ViewModels"
x:DataType="vm:LoginViewModel"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_trade.LoginControl">
<StackPanel Width="200" Spacing="15" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Login"/>
<TextBox Text="{Binding UserLogin.Login}"/>
<TextBlock Text="Password"/>
<TextBox Text="{Binding UserLogin.Password}" PasswordChar="*"/>
<TextBlock Text="{Binding ErrorMessage}" Foreground="Red" HorizontalAlignment="Center"/>
<StackPanel Orientation="Horizontal" Spacing="5" HorizontalAlignment="Center">
<Button Content="Login" Command="{Binding LoginCommand}"/>
<Button Content="Guest" Command="{Binding GuestCommand}"/>
</StackPanel>
</StackPanel>
</UserControl>