Autorization.axaml 881 B

123456789101112131415161718192021
  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. x:Class="AvaloniaApplication2.Autorization"
  7. xmlns:vm="using:AvaloniaApplication2.ViewModels"
  8. x:DataType="vm:MainWindowViewModel">
  9. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <TextBlock Text="Логин"/>
  11. <TextBox Text="{Binding Login}" />
  12. <TextBlock Text="Пароль" />
  13. <TextBox Text="{Binding Password}" PasswordChar="*"/>
  14. <Button Content="Войти" Width="200" Command="{Binding Enter}"/>
  15. <TextBlock Text="{Binding Info}" Foreground="Red" Margin="0,20,0,0" />
  16. </StackPanel>
  17. </UserControl>