AuthView.axaml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. xmlns:vm="clr-namespace:ApplicationAvalonia.ViewModels"
  7. x:DataType="vm:AuthViewModel"
  8. x:Class="ApplicationAvalonia.Views.AuthView"
  9. >
  10. <DockPanel VerticalAlignment="Center" HorizontalAlignment="Center">
  11. <StackPanel Orientation="Vertical">
  12. <TextBlock Text="Авторизация" TextAlignment="Center" FontSize="24" />
  13. <TextBox Watermark="Логин" Text="{Binding Login}" MinWidth="200"/>
  14. <TextBox Watermark="Пароль" Text="{Binding Password}" MinWidth="200" PasswordChar="*"/>
  15. <TextBlock Text="{Binding Message}" HorizontalAlignment="Center" Foreground="Red"/>
  16. <Button HorizontalAlignment="Center" Command="{Binding ButtonClickCommand}">Авторизаия</Button>
  17. <Button HorizontalAlignment="Center" Command="{Binding RegBtnCommand}">Регистрация</Button>
  18. </StackPanel>
  19. </DockPanel>
  20. </UserControl>