Auth.xaml 1.6 KB

1234567891011121314151617181920212223242526
  1. <Window x:Class="TrainingBeforeExams.Auth"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:TrainingBeforeExams"
  7. mc:Ignorable="d"
  8. Title="Auth" Height="450" Width="300">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="70"></RowDefinition>
  12. <RowDefinition Height="*"></RowDefinition>
  13. <RowDefinition Height="50"></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <Rectangle Fill="BlueViolet"></Rectangle>
  16. <Label Content="Авторизация" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" FontFamily="TimesNewRoman" Foreground="AliceBlue"></Label>
  17. <StackPanel Grid.Row="1" Orientation="Vertical" Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Center">
  18. <TextBlock FontSize="20" Text="Логин" HorizontalAlignment="Center" Margin="5"></TextBlock>
  19. <TextBox FontSize="20" x:Name="loginBox" Margin="5"></TextBox>
  20. <TextBlock Text="Пароль" FontSize="20" HorizontalAlignment="Center" Margin="5"></TextBlock>
  21. <TextBox FontSize="20" x:Name="passBox" Margin="5"></TextBox>
  22. <Button Content="Войти" FontSize="24" Margin="5, 15, 5, 5" Background="AliceBlue" Foreground="BlueViolet" Click="Button_Click"></Button>
  23. </StackPanel>
  24. <Rectangle Grid.Row="2" Fill="BlueViolet"></Rectangle>
  25. </Grid>
  26. </Window>