12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <Window x:Class="Practics.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Practics"
- mc:Ignorable="d"
- Title="Окно входа" Height="500" Width="800">
- <Grid>
- <TabControl>
- <TabItem Header="Регистрация" IsSelected="False">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Content="TechSphere" HorizontalContentAlignment="Left" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <Label Grid.Row="1" Foreground="Black" Content="Добро пожаловать" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <Label Grid.Row="2" Foreground="Black" Content="Введите свою почту и пароль для регистрации" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <StackPanel Orientation="Vertical" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Введите почту</TextBlock>
- <TextBox x:Name="tbEmail" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Введите пароль</TextBlock>
- <PasswordBox x:Name="tbPassword" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Повторите пароль</TextBlock>
- <PasswordBox x:Name="tbPassword3" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp2"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="7" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Введите фамилию</TextBlock>
- <TextBox x:Name="tbLastName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="8" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Введите имя</TextBlock>
- <TextBox x:Name="tbFirstName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="9" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock>Введите отчество</TextBlock>
- <TextBox x:Name="tbMiddleName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- </StackPanel>
- <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"/>
- <TextBlock x:Name="tbStatus" Foreground="Black" Grid.Row="6" HorizontalAlignment="Center" ></TextBlock>
- </Grid>
- </TabItem>
- <TabItem Header="Вход" IsSelected="True">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Content="TechSphere" HorizontalContentAlignment="Left" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <Label Grid.Row="1" Foreground="Black" Content="Добро пожаловать" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <Label Grid.Row="2" Foreground="Black" Content="Введите свою почту и пароль для авторизации" HorizontalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <TextBox x:Name="tbEmail2" Grid.Row="3" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" Text="admin"/>
- <PasswordBox x:Name="tbPassword2" Grid.Row="4" Width="200px" PasswordChar="*" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" PreviewKeyUp="tbStatus_PreviewKeyUp" Password="admin"/>
- <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"/>
- <TextBlock x:Name="tbStatus2" Grid.Row="6" HorizontalAlignment="Center" ></TextBlock>
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </Window>
|