MainWindow.xaml 6.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <Window x:Class="Practics.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:Practics"
  7. mc:Ignorable="d"
  8. Title="Окно входа" Height="500" Width="800">
  9. <Grid>
  10. <TabControl>
  11. <TabItem Header="Регистрация" IsSelected="False">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="1*"/>
  15. <RowDefinition Height="40px"/>
  16. <RowDefinition Height="40px"/>
  17. <RowDefinition Height="40px"/>
  18. <RowDefinition Height="40px"/>
  19. <RowDefinition Height="40px"/>
  20. <RowDefinition Height="40px"/>
  21. <RowDefinition Height="40px"/>
  22. <RowDefinition Height="40px"/>
  23. <RowDefinition Height="40px"/>
  24. <RowDefinition/>
  25. </Grid.RowDefinitions>
  26. <Label Grid.Row="0" Content="TechSphere" HorizontalContentAlignment="Left" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  27. <Label Grid.Row="1" Foreground="Black" Content="Добро пожаловать" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  28. <Label Grid.Row="2" Foreground="Black" Content="Введите свою почту и пароль для регистрации" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  29. <StackPanel Orientation="Vertical" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center">
  30. <TextBlock>Введите почту</TextBlock>
  31. <TextBox x:Name="tbEmail" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  32. </StackPanel>
  33. <StackPanel Orientation="Vertical" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center">
  34. <TextBlock>Введите пароль</TextBlock>
  35. <PasswordBox x:Name="tbPassword" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp"/>
  36. </StackPanel>
  37. <StackPanel Orientation="Vertical" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center">
  38. <TextBlock>Повторите пароль</TextBlock>
  39. <PasswordBox x:Name="tbPassword3" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp2"/>
  40. </StackPanel>
  41. <StackPanel Orientation="Vertical" Grid.Row="7" HorizontalAlignment="Center" VerticalAlignment="Center">
  42. <TextBlock>Введите фамилию</TextBlock>
  43. <TextBox x:Name="tbLastName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  44. </StackPanel>
  45. <StackPanel Orientation="Vertical" Grid.Row="8" HorizontalAlignment="Center" VerticalAlignment="Center">
  46. <TextBlock>Введите имя</TextBlock>
  47. <TextBox x:Name="tbFirstName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  48. </StackPanel>
  49. <StackPanel Orientation="Vertical" Grid.Row="9" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <TextBlock>Введите отчество</TextBlock>
  51. <TextBox x:Name="tbMiddleName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  52. </StackPanel>
  53. <Button x:Name="btnRegistraion" Grid.Row="10" Content="Регистрация" Background="LightSkyBlue" Foreground="Black" Width="200px" Height="40" Click="btnRegistraion_Click" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  54. <TextBlock x:Name="tbStatus" Foreground="Black" Grid.Row="6" HorizontalAlignment="Center" ></TextBlock>
  55. </Grid>
  56. </TabItem>
  57. <TabItem Header="Вход" IsSelected="True">
  58. <Grid>
  59. <Grid.RowDefinitions>
  60. <RowDefinition Height="1*"/>
  61. <RowDefinition Height="40px"/>
  62. <RowDefinition Height="40px"/>
  63. <RowDefinition Height="40px"/>
  64. <RowDefinition Height="40px"/>
  65. <RowDefinition Height="40px"/>
  66. <RowDefinition/>
  67. </Grid.RowDefinitions>
  68. <Label Grid.Row="0" Content="TechSphere" HorizontalContentAlignment="Left" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  69. <Label Grid.Row="1" Foreground="Black" Content="Добро пожаловать" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  70. <Label Grid.Row="2" Foreground="Black" Content="Введите свою почту и пароль для авторизации" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
  71. <TextBox x:Name="tbEmail2" Grid.Row="3" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" Text="admin"/>
  72. <PasswordBox x:Name="tbPassword2" Grid.Row="4" Width="200px" PasswordChar="*" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp" Password="admin"/>
  73. <Button x:Name="btnLogin" Grid.Row="5" Content="Вход" Background="LightSkyBlue" Foreground="Black" Width="200px" Click="btnLogin_Click" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
  74. <TextBlock x:Name="tbStatus2" Grid.Row="6" HorizontalAlignment="Center" ></TextBlock>
  75. </Grid>
  76. </TabItem>
  77. </TabControl>
  78. </Grid>
  79. </Window>