<Page xmlns:local="clr-namespace:ForzaUI"
      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:System="clr-namespace:System;assembly=mscorlib"
      x:Class="ForzaUI.A_CarLoadingEventInfo"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">
    
    <Page.Resources>
		<Color x:Key="A_Color_Cutscene_Subtitle_Foreground">#FFF0F0F0</Color>
		<Color x:Key="A_Color_Cutscene_Subtitle_Background">#FF202020</Color>

		<Color x:Key="A_Color_Reward_Foreground">#FFFFFF50</Color>
		<Color x:Key="A_Color_Reward_Background">#FF202020</Color>

		<Style x:Key="A_Style_FZTextBlock_Cutscene_Subtitle" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title}" >
			<Setter Property="FontSize" Value="25"/>
		</Style>

        <Storyboard x:Key="Show">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
		</Storyboard>
        <Storyboard x:Key="Hide">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
		</Storyboard>

	</Page.Resources>

	<Viewbox x:Name="LayoutRoot">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height=".2*"/>
				<RowDefinition Height="45"/>
				<RowDefinition Height="12"/>
				<RowDefinition Height="12"/>
				<RowDefinition Height="12"/>
				<RowDefinition Height="12"/>
				<RowDefinition Height=".1*"/>
			</Grid.RowDefinitions>

			<Grid Grid.Column="1" Grid.Row="1">
			<local:FZTextBlock Text="{Binding EventName}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Background}" Margin="0,0,0,0" VerticalAlignment="Bottom" Height="50.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.30" ScaleY="0.30"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding EventName}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Foreground}" Margin="0,0,2,1" VerticalAlignment="Bottom" Height="50.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.30" ScaleY="0.30"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>

			<Grid Grid.Column="1" Grid.Row="2">
			<local:FZTextBlock Text="{Binding EventType}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Background}" Margin="-0.346,-35.882,0.346,14.882" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding EventType}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Foreground}" Margin="-0.692,-35.574,1.693,15.574" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>

			<Grid Grid.Column="1" Grid.Row="3">
			<local:FZTextBlock Text="{Binding EventDistTime}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Background}" Margin="-0.346,-55.882,0.346,0.882" VerticalAlignment="Center" Height="60.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding EventDistTime}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Foreground}" Margin="-0.692,-55.574,1.693,0.574" VerticalAlignment="Center" Height="60.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>

			<Grid Grid.Column="1" Grid.Row="4">
			<local:FZTextBlock Text="{Binding RewardCR}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Reward_Background}" Margin="-0.346,-55.882,0.346,14.882" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding RewardCR}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Reward_Foreground}" Margin="-0.692,-55.574,1.693,15.574" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>

			<Grid Grid.Column="1" Grid.Row="5">
			<local:FZTextBlock Text="{Binding RewardXP}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Reward_Background}" Margin="-0.346,-64.882,0.346,14.882" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding RewardXP}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Reward_Foreground}" Margin="-0.692,-65.574,1.693,15.574" VerticalAlignment="Center" Height="40.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>

			<Grid Grid.Column="1" Grid.Row="6">
			<local:FZTextBlock Text="{Binding EventDetails}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Background}" Margin="-0.346,-64.882,0.346,14.882" VerticalAlignment="Center" Height="32.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			<local:FZTextBlock Text="{Binding EventDetails}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_Subtitle}" Color="{StaticResource A_Color_Cutscene_Subtitle_Foreground}" Margin="-0.692,-65.574,1.693,15.574" VerticalAlignment="Center" Height="32.473" RenderTransformOrigin="0.5,0.5" >
				<local:FZTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.25" ScaleY="0.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FZTextBlock.RenderTransform>
			</local:FZTextBlock>
			</Grid>
		</Grid>
	</Viewbox>	
</Page>
