Authorization.xaml 2.4 KB

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