RegistrationWindow.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="RegAuth.Window1"
  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:RegAuth"
  7. mc:Ignorable="d"
  8. Title="Window1" Height="450" Width="800">
  9. <Grid Width="400" Height="400">
  10. <Grid.RowDefinitions>
  11. <RowDefinition/>
  12. <RowDefinition/>
  13. <RowDefinition/>
  14. <RowDefinition/>
  15. <RowDefinition/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition/>
  20. <ColumnDefinition/>
  21. </Grid.ColumnDefinitions>
  22. <TextBlock Text="Логин" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" />
  23. <TextBlock Text="Пароль" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" />
  24. <TextBlock Text="Фамилия" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" />
  25. <TextBlock Text="Имя" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center" />
  26. <TextBlock Text="Отчество" Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center" />
  27. <TextBox Name="login" Grid.Column="1" Grid.Row="0"/>
  28. <PasswordBox Name="password" Grid.Column="1" Grid.Row="1"/>
  29. <TextBox Name="lastName" Grid.Column="1" Grid.Row="2"/>
  30. <TextBox Name="firstName" Grid.Column="1" Grid.Row="3"/>
  31. <TextBox Name="middleName" Grid.Column="1" Grid.Row="4"/>
  32. <Button Content="Зарегестрироваться" Grid.Column="0" Grid.Row="5" Click="RegClick"/>
  33. <Button Content="Отмена" Grid.Column="1" Grid.Row="5" Click="CancelClick"/>
  34. </Grid>
  35. </Window>