Authorization.axaml 1.0 KB

12345678910111213141516171819
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:AvaloniaApplicationTestNew.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="AvaloniaApplicationTestNew.Views.Authorization"
  8. x:DataType="vm:MainWindowViewModel">
  9. <StackPanel VerticalAlignment="Center">
  10. <TextBlock Text="Авторизация" HorizontalAlignment="Center"/>
  11. <TextBlock Text="Введите логин:"/>
  12. <TextBox Text="{Binding AuthorizationVM.Login}" Watermark="Логин"/>
  13. <TextBlock Text="Введите пароль:"/>
  14. <TextBox Text="{Binding AuthorizationVM.Password}" Watermark="Пароль" PasswordChar="*"/>
  15. <Button Content="Войти" Command="{Binding Loged}"/>
  16. <TextBlock Text="{Binding AuthorizationVM.Message}" Foreground="Red"/>
  17. </StackPanel>
  18. </UserControl>