AuthPage.axaml 1.2 KB

123456789101112131415161718192021
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:AvaloniaHomeTry.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="AvaloniaHomeTry.AuthPage"
  8. x:DataType="vm:MainWindowViewModel">
  9. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <TextBlock Text="Добро пожаловать!" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  11. <TextBlock Text="Введите логин:"/>
  12. <TextBox Text="{Binding ContentDbVM.Login}" Width="500"/>
  13. <TextBlock Text="Введите пароль:"/>
  14. <TextBox Text="{Binding ContentDbVM.Password}" PasswordChar="*"/>
  15. <TextBlock Text="{Binding ContentDbVM.Message}"/>
  16. <Button Content="Войти" Command="{Binding Enter}" HorizontalAlignment="Center" IsDefault="True"/>
  17. <Button Content="Регистрация" HorizontalAlignment="Center" Margin="30" Command="{Binding Registration}"/>
  18. </StackPanel>
  19. </UserControl>