<Window x:Class="Exam.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:Exam"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <StackPanel Orientation="Horizontal">
        <StackPanel HorizontalAlignment="Left" Width="170" x:Name="SPAutorisation">
            <TextBlock Text="Вход" Margin="10,20,0,0"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Логин" Margin="10,5,17,0" VerticalAlignment="Center"/>
                <TextBox x:Name="TBLogin" Width="100" VerticalAlignment="Center"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Пароль" Margin="10,5,10,0" VerticalAlignment="Center"/>
                <TextBox x:Name="TBPassword" Width="100" VerticalAlignment="Center"/>
            </StackPanel>
                <Button Content="Войти" Width="100" Margin="10" Click="Autorisation_Click"/>
            </StackPanel>
            <StackPanel HorizontalAlignment="Left" Width="170" x:Name="SPButtons" Visibility="Collapsed">
                <Button x:Name="BRate" Content="Рейтинг" Width="100" Margin="10" Click="ToRatePage_Click" Visibility="Collapsed"/>
                <Button  x:Name="BMain" Content="Главная" Width="100" Margin="10" Click="MainPage_Click" Visibility="Collapsed"/>
                <Button Content="Выйти" Width="100" Margin="10" Click="Exit_Click"/>
            </StackPanel>
            <Frame Name = "MainFrame" Margin="20"/>
        </StackPanel>
    </Grid>
</Window>
