RegWindow.xaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <Window x:Class="Work29.RegWindow"
  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. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="*"/>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="*"/>
  18. <RowDefinition Height="*"/>
  19. </Grid.RowDefinitions>
  20. <Label Content="Введите Вашу Фамилию: " Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  21. <TextBox Name="textBox_SurnameNewUser" Text="{Binding User.Surname}" Foreground="Black" Grid.Column="0" Grid.Row="0" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  22. <Label Content="Введите Ваше Имя: " Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  23. <TextBox Name="textBox_NameNewUser" Text="{Binding User.Name}" Foreground="Black" Grid.Column="0" Grid.Row="1" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  24. <Label Content="Введите Ваше Отчество: " Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  25. <TextBox Name="textBox_PatronymicNewUser" Text="{Binding User.Patronymic}" Foreground="Black" Grid.Column="0" Grid.Row="2" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  26. <Label Content="Введите Ваш Логин: " Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  27. <TextBox Name="textBox_LoginNewUser" Text="{Binding User.Login}" Foreground="Black" Grid.Column="1" Grid.Row="0" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  28. <Label Content="Введите Ваш Пароль: " Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  29. <TextBox Name="textBox_PasswordNewUser" Text="{Binding User.Password}" Foreground="Black" Grid.Column="1" Grid.Row="1" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  30. <Label Content="Введите Ваш Номер телефона: " Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" Foreground="White" FontSize="18" VerticalAlignment="Center"/>
  31. <TextBox Name="textBox_PhoneNewUser" Text="{Binding User.Phone}" Foreground="Black" Grid.Column="1" Grid.Row="2" Height="25" FontSize="18" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="200"/>
  32. <Button x:Name="button_CreateUser" Command="{Binding CreateUser}" Grid.Column="1" Grid.Row="3" Content="Готово" FontSize="18" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150"/>
  33. </Grid>
  34. </Window>