<Page
    x:Class="FlappyChart.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FlappyChart"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:c1="using:C1.Xaml.Chart">

    <Grid Background="{StaticResource GrayBrush1}" >
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="140" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Image Grid.Column="1" Source="Assets/title.png" Margin="0 30 0 0"/>
        <Grid Grid.Row="1" Margin="110 20 110 100" MaxHeight="768" MaxWidth="1024">
            <Grid.RowDefinitions>
                <RowDefinition Height="60" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock HorizontalAlignment="Left" Foreground="Black" VerticalAlignment="Center" FontSize="24" Margin="5" Text="Built entirely using ComponentOne Chart for WinRT XAML" />
            <TextBlock x:Name="score" FontSize="24" VerticalAlignment="Center" Grid.Column="1"/>
            <Grid Background="{StaticResource BlueBrush1}" Margin="10" Grid.Row="1" Grid.ColumnSpan="2"/>
            <c1:C1Chart Background="Transparent" x:Name="chart" Grid.Row="1" Grid.ColumnSpan="2">
                <c1:C1Chart.CustomPalette>
                    <ResourceDictionary>
                        <SolidColorBrush x:Key="0" Color="{StaticResource Green1}" />
                    </ResourceDictionary>
                </c1:C1Chart.CustomPalette>
            </c1:C1Chart>
            <TextBlock x:Name="title" Grid.Row="1" FontSize="24" Margin="0 100 0 0" VerticalAlignment="Center" TextAlignment="Center" IsHitTestVisible="False" Grid.ColumnSpan="2"/>
        </Grid>
        <Image Grid.Row="1" Source="Assets/c1logo.png" Stretch="None" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="20"/>
        <MediaElement Name="mediaFlap" IsLooping="False" AutoPlay="False" Height="0" Width="0" Source="Assets/flap.wav" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
        <MediaElement Name="mediaCrash" Volume="0.5" IsLooping="False" AutoPlay="False" Height="0" Width="0" Source="Assets/crash.wav" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
    </Grid>
</Page>
