﻿<Page x:Class="Live_Scoring_V1.Login"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:Live_Scoring_V1"
      mc:Ignorable="d" 
     d:DesignHeight="800" d:DesignWidth="1280"
      Title="Login">
    <Grid>
        <Grid x:Name="MainWrapa" Background="#2e405b">
            <Viewbox Margin="0" Stretch="Fill">
                <Grid>
                    <Grid  Height="400" Width="300" Margin="490,100">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="140" />
                            <RowDefinition Height="230" />
                        </Grid.RowDefinitions>

                        <StackPanel Grid.Row="0">
                            <Image Source="/SL_App_Icon256.png" Margin="0,0,0,10" Width="135" Stretch="Fill" Height="102"  />
                            <TextBlock FontSize="14" Foreground="#ccc" Height="20" Width="220" HorizontalAlignment="Center" ><Run Text="Welcome to Sideline Manager App"/></TextBlock>
                            <!-- <TextBlock FontSize="26" HorizontalAlignment="Center" Foreground="#fff" FontWeight="Bold">LOGIN AREA</TextBlock> -->

                        </StackPanel>
                        <Border Background="#576d8e" Grid.Row="1" Padding="20" CornerRadius="20" BorderBrush="#000" BorderThickness="1"  >
                            <StackPanel Orientation="Vertical">
                                <TextBlock FontSize="16" HorizontalAlignment="Left" Foreground="#ccc" FontWeight="Bold" Margin="0,5">Email:</TextBlock>
                                <TextBox x:Name="Email" Height="30" VerticalContentAlignment="Center" FontSize="16" Padding="5,0" Background="#ccc" BorderBrush="#000" BorderThickness="1"></TextBox>
                                <TextBlock FontSize="16" HorizontalAlignment="Left" Foreground="#ccc" FontWeight="Bold" Margin="0,5">Password:</TextBlock>
                                <PasswordBox x:Name="Password" Height="30" VerticalContentAlignment="Center" FontSize="16" Padding="5,0" Background="#ccc" BorderBrush="#000" BorderThickness="1" />
                                <Button x:Name="LoginBtn" Background="green" Foreground="#fff" FontSize="16" Margin="0,20" BorderBrush="#000" BorderThickness="1" Padding="5" Click="Button_Click">Login</Button>

                            </StackPanel>
                        </Border>
                    </Grid>
                    <Grid x:Name="DownloadingProgress" Visibility="Hidden" >
                        <Grid.Background>
                            <ImageBrush ImageSource="Images/Transparent.png"/>
                        </Grid.Background>
                        <Grid Background="#fff" Width="600" Height="300">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40"/>
                                <RowDefinition Height="260" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0" Background="#2e405b">
                                <TextBlock Foreground="#fff" FontSize="16" VerticalAlignment="Center" Margin="10,0">Download in process ...</TextBlock>
                            </Grid>
                            <Grid Grid.Row="1">
                                <ProgressBar x:Name="ProgressBarBox" HorizontalAlignment="Left" Height="20" Margin="60" VerticalAlignment="Top" Width="477"/>
                                <TextBlock x:Name="ProgressBarBoxText" Foreground="#2e405b" FontSize="16" VerticalAlignment="Center" TextAlignment="Center" Margin="10,0">Download 0%</TextBlock>
                            </Grid>
                        </Grid>
                    </Grid>
                </Grid>

            </Viewbox>
        </Grid>


    </Grid>
</Page>
