﻿<Page x:Class="Live_Scoring_V1.Listfixturs"
      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="Listfixturs">

    <Grid Background="#2e405b" >

        <Viewbox Margin="0" Stretch="Fill">

            <Grid Width="1280" Height="800">
                <Grid.Background>
                    <ImageBrush ImageSource="Images/trasparentBG.png"/>
                </Grid.Background>
                <Grid Width="1280" Height="800" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50" />
                        <RowDefinition Height="750"/>
                    </Grid.RowDefinitions>
                    <Grid  Grid.Row="0"   >

                        <Border Grid.Row="0" Background="#2e405b" BorderBrush="#1a2433" BorderThickness="0,0,0,1">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="1*" />
                                    <ColumnDefinition Width="3*" />
                                    <ColumnDefinition Width="2*" />
                                </Grid.ColumnDefinitions>

                                <TextBlock  Grid.Column="0"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0" Foreground="#ccc" FontSize="18" FontWeight="Bold" Grid.ColumnSpan="2" Width="843"><Run Text="Sideline Manager"/><Run Language="en-za" Text=" - V1.0.3 - BETA"/></TextBlock>


                                <TextBlock x:Name="FixtureName"  Grid.Column="1" HorizontalAlignment="left" VerticalAlignment="Center" Margin="5,0" Foreground="#ccc" FontSize="18"  FontWeight="Bold"></TextBlock>

                                <StackPanel Grid.Column="2" Orientation="Horizontal"  HorizontalAlignment="Right">



                                    <Image Source="/Images/Reset_icon.png" Height="25" Margin="10,5" MouseDown="Download_data" ToolTip="Sync Fixtures"  />
                                    <Image Source="/Images/Refresh_icon.png" Height="25" Margin="10,5" ToolTip="Reset Data" MouseDown="Border_MouseDown"  />
                                    <Border x:Name="Online" Background="LawnGreen" Height="20" Padding="5,0" Margin="10,5" >
                                        <TextBlock Foreground="#fff">Online</TextBlock>
                                    </Border>
                                    <Border Background="Red" Height="20" Padding="15,0" Margin="10,5" MouseDown="Logout_MouseDown" >
                                        <TextBlock Foreground="#fff" MouseDown="Log_out">Logout</TextBlock>
                                    </Border>
                                    <Border x:Name="ExitApp" Background="#576d8e" Height="20" Padding="10,0" Margin="5,5" MouseDown="Exit_app" >
                                        <TextBlock Foreground="#fff">x</TextBlock>
                                    </Border>
                                </StackPanel>
                            </Grid>

                        </Border>


                    </Grid>

                    <Grid Grid.Row="1" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="280*" />
                            <ColumnDefinition Width="1000*" />
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="0"/>


                        <ScrollViewer x:Name="Fixture_Scroller" PanningMode="Both"  Grid.Column="1" Margin="0,84,60,36" Background="#576d8e"  ScrollViewer.CanContentScroll="True" 
      ScrollViewer.VerticalScrollBarVisibility="Hidden"
      ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderBrush="#fff" BorderThickness="2" >
                        </ScrollViewer>

                        <!--<StackPanel x:Name="FixturesArea">
							<StackPanel Orientation="Horizontal" Height="200" VerticalAlignment="Top">

								<Grid Width="300"  Margin="10" Background="#00508F" >
									<Grid Margin="20">
										<TextBlock Foreground="#fff" FontSize="14" FontWeight="Bold" Height="20" VerticalAlignment="Top" HorizontalAlignment="Left" >28 April 2017</TextBlock>
										<TextBlock Foreground="#fff" FontSize="14" FontWeight="Bold" Height="20" VerticalAlignment="Top" HorizontalAlignment="Right" >12:00</TextBlock>
									</Grid>
									<Rectangle Width="60" Height="60" RadiusX="60" RadiusY="60" Margin="24,42,196,58" >
										<Rectangle.Fill>
											<ImageBrush ImageSource="Images/IMG_Home.jpg"/>
										</Rectangle.Fill>
									</Rectangle>
									<Rectangle Width="60" Height="60" RadiusX="60" RadiusY="60"  Margin="206,57,34,63" >
										<Rectangle.Fill>
											<ImageBrush ImageSource="Images/IMG_Away.jpg"/>
										</Rectangle.Fill>
									</Rectangle>
									
									<TextBlock Foreground="#CCC" FontSize="20" FontWeight="Bold" Height="29" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="137,0,134,77" Width="29" >VC</TextBlock>
									<TextBlock Foreground="#CCC" FontSize="14" FontWeight="Bold" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Center" TextAlignment="Center" Margin="20,0,185,35" Width="95" >HOME TEAM</TextBlock>
									<TextBlock Foreground="#CCC" FontSize="14" FontWeight="Bold" Height="23" VerticalAlignment="Center" HorizontalAlignment="Right" TextAlignment="Center" Margin="0,122,20,35" Width="96" >HOME TEAM</TextBlock>

									<TextBlock Foreground="#fff" FontSize="14" FontWeight="Bold" Height="20" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,-20,0,10" >Vodacom Incoming Series</TextBlock>
								</Grid>
								
							</StackPanel>
							

						</StackPanel>-->

                    </Grid>


                </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>
                <!-- <Button x:Name="NewFixtureBtn" Background="green" Foreground="#fff" FontSize="16" Margin="1072,84,60,684" BorderBrush="#000" BorderThickness="1" Padding="5" Content="New Match" Click="NewFixtureBtn_Click" /> -->
                <TextBlock x:Name="ListHeading" FontSize="48" Foreground="#97abc8" TextAlignment="left" HorizontalAlignment="Left" Margin="281,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="405" Text="Fixtures"/>
                <Menu HorizontalAlignment="Left" Height="750" Margin="0,50,0,0" VerticalAlignment="Top" Width="198" Background="#2e405b">
                    <!-- <MenuItem Header="My Matches" Height="62" Width="198" Foreground="#ccc" FontSize="18" FontWeight="Bold"/> -->
                    <MenuItem Header="Fixtures" Height="62" Width="198" Foreground="#ccc" FontSize="18" FontWeight="Bold" Click="MenuItem_Click"/>
                </Menu>

            </Grid>
        </Viewbox>
    </Grid>
</Page>
