AuthWindow.axaml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <Window 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="exam.AuthWindow"
  7. Title="Авторизация">
  8. <Grid>
  9. <Grid.RowDefinitions>
  10. <RowDefinition/>
  11. <RowDefinition/>
  12. <RowDefinition/>
  13. <RowDefinition/>
  14. <RowDefinition/>
  15. </Grid.RowDefinitions>
  16. <TextBox x:Name="LoginTextBox" Watermark="Логин" Margin="10, 20"
  17. Grid.Row="0"/>
  18. <TextBox x:Name="PasswordTextBox" Watermark="Пароль" PasswordChar="*" Margin="10,20"
  19. Grid.Row="1"/>
  20. <TextBlock x:Name="ErrorTextBlock" IsVisible="False" Foreground="Red" FontSize="14"
  21. Margin="10,20"
  22. Grid.Row="2"/>
  23. <Button x:Name="AuthButton" Click="AuthButton_OnClick" Content="Войти" Margin="10,20"
  24. Grid.Row="3"/>
  25. <Button x:Name="RegButton" Click="RegButton_OnClick" Content="Зарегистрироваться" Margin="10,20"
  26. Grid.Row="4"/>
  27. </Grid>
  28. </Window>