<Page x:Class="ForzaUI.Scenes.Anthem.A_Splash_E3"
      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"
      mc:Ignorable="d"
      xmlns:local="clr-namespace:ForzaUI"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">

    <Page.Resources>
        <ResourceDictionary>
            <BitmapImage x:Key="A_ImageSource_Logo_Vert" UriSource="/Textures/Data_Bound/Anthem/Icons/Anthem-Logo-Vert.png" />
            <BitmapImage x:Key="A_ImageSource_Logo_Vert_Chinese" UriSource="/Textures/Data_Bound/Anthem/Icons/Anthem-Logo-Vert-zhCN.png" />
            <Color x:Key="A_BackgroundColor">#FF000000</Color>        

            <Style x:Key="A_Style_FZMaterial_Logo"
                   TargetType="local:FZMaterial">
                <Setter Property="ImageSource"
                        Value="{StaticResource A_ImageSource_Logo_Vert}" />
                <Setter Property="Height"
                        Value="268" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsLangChinese, RelativeSource={RelativeSource AncestorType=Page}}"
                                 Value="True">
                        <Setter Property="ImageSource"
                                Value="{StaticResource A_ImageSource_Logo_Vert_Chinese}" />
                        <Setter Property="Height"
                                Value="300" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </Page.Resources>

    <Grid Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
        <Grid x:Name="LayoutRoot" Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">

            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="VisualStateGroup">
                    <VisualState x:Name="PostVideoLoading">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundFader">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>

                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Hidden">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Video">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                            </DoubleAnimationUsingKeyFrames>

                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundFader">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>

            <!-- Video -->
            <MediaElement x:Name="Video" Style="{StaticResource A_Style_ScreenSize}" />

            <local:FZMaterial x:Name="BackgroundFader" Style="{StaticResource A_Style_ScreenSize}" Opacity="0.0" Color="{StaticResource A_BackgroundColor}" />

            <!-- LOGO -->
            <ContentControl Style="{StaticResource A_Style_ContentControl_BottomRight}" Margin="0, 0, 67, 77">
                <StackPanel>
                    <local:FZMaterial x:Name="TitleLogo" Style="{StaticResource A_Style_FZMaterial_Logo}" />
                    <Grid Width="326" HorizontalAlignment="Center"  Margin="0, 15, 0, 0" Visibility="{Binding ShowButton, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}">
                            <StackPanel x:Name="HelpButton" Orientation="Horizontal" HorizontalAlignment="Center" >
                                <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}">
                                    <local:FZTextBlock Text="{local:Loc Main.IDS_Press}" Style="{StaticResource A_Style_Text_LoadingSmall}" />
                                </Decorator>
                                <local:ControllerButtonControl Button="A" Style="{StaticResource A_Style_ControllerButtonControl_Default_ShowAlways}" MinWidth="26" Height="26" Margin="9,-4,0,-4"/>
                                <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}">
                                    <local:FZTextBlock Text="{local:Loc Main.IDS_To_Start}" Style="{StaticResource A_Style_Text_LoadingSmall}" Margin="8,0,0,0" />
                                </Decorator>
                            </StackPanel>
                        </Grid>
                </StackPanel>
            </ContentControl>
        </Grid>
    </Grid>
</Page>
