MainWindow.xaml 2.3 KB

1234567891011121314151617181920212223242526272829
  1. <Window x:Class="Work29.MainWindow"
  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:Work29"
  7. mc:Ignorable="d"
  8. Title="Авторизация" MinHeight="350" MinWidth="700" Height="350" Width="700" MaxHeight="450" MaxWidth="800">
  9. <Grid Background="Black">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"/>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="*"/>
  18. <RowDefinition Height="*"/>
  19. <RowDefinition Height="*"/>
  20. <RowDefinition Height="*"/>
  21. </Grid.RowDefinitions>
  22. <Label Foreground="White" Content="Логин:" FontSize="18" Grid.Column="1" Grid.Row="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom"/>
  23. <TextBox Name="textBox_Login" Foreground="Black" Text="{Binding User.Login}" Grid.Column="1" Grid.Row="2" Height="25" FontSize="18" VerticalAlignment="Top" HorizontalAlignment="Center" Width="200"/>
  24. <Label Foreground="White" Content="Пароль:" FontSize="18" Grid.Column="1" Grid.Row="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Height="30" VerticalAlignment="Bottom"/>
  25. <PasswordBox Name="textBox_Password" Foreground="Black" Grid.Column="1" Grid.Row="3" Height="25" FontSize="18" VerticalAlignment="Top" HorizontalAlignment="Center" Width="200"/>
  26. <Button x:Name="button_registry" Command="{Binding RegNew}" Grid.Column="1" Grid.Row="3" Content="Регистрация" FontSize="18" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="110"/>
  27. <Button x:Name="button_auto" Command="{Binding AutoReady}" CommandParameter="{Binding ElementName=textBox_Password}" Grid.Column="1" Grid.Row="3" Content="Войти" FontSize="18" Foreground="Black" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="110"/>
  28. </Grid>
  29. </Window>