<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:ForzaUI;assembly="
    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <Color x:Key="A_Color_Loading_StatsValue">#FFFFFFFF</Color>
    <Color x:Key="A_Color_Loading_StatsTitle">#FFFFFFFF</Color>

    <Thickness x:Key="A_Span_LoadingMargin">69, 61</Thickness>

    <Thickness x:Key="A_Thickness_LoadingMargin">0,7,0,0</Thickness>
    <Thickness x:Key="A_Thickness_LoadingMargin_CHS">0,14,0,0</Thickness>
    <Thickness x:Key="A_Thickness_LoadingMargin_CHT">0,14,0,0</Thickness>
    <Thickness x:Key="A_Thickness_LoadingMargin_JP">0,14,0,0</Thickness>
    <Thickness x:Key="A_Thickness_LoadingMargin_KO">0,14,0,0</Thickness>

    <Color x:Key="A_Color_DropShadow_Loading">#4D000000</Color>
    <Thickness x:Key="A_Thickness_LoadingDropShadowMargin">2,2,0,0</Thickness>

    <local:UIStoryboard x:Key="A_Storyboard_LoadingDivider_BlendValueInputChanged">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                               FillBehavior="Stop"
                                               Storyboard.TargetProperty="(local:BlendValue.Blend)">
            <EasingDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.5"
                                            Value="1" EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}"/>
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <Style x:Key="A_Style_Transition_BlackBar" TargetType="local:FZMaterial">
        <Setter Property="local:UIPageTransitionManager.TransitionIndex" Value="0" />
    </Style>

    <Style x:Key="A_Style_FrameworkElement_StatContainer" TargetType="FrameworkElement">
        <Setter Property="RenderTransformOrigin"
                        Value="0.5,0.5" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TransformGroup>
                    <SkewTransform AngleX="-8" />
                </TransformGroup>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_StatsBase" TargetType="local:FZTextBlock">
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_StatTitle" BasedOn="{StaticResource A_Style_FZTextBlock_StatsBase}" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource A_Color_Loading_StatsTitle}"/>
        <Setter Property="FontFamily" Value="Horizon_C"/>
        <Setter Property="CapHeight" Value="15"/>
        <Setter Property="Margin" Value="0,4"/>
        <Setter Property="TrackingAdjust" Value="0.125"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_StatValue" BasedOn="{StaticResource A_Style_FZTextBlock_StatsBase}" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource A_Color_Loading_StatsValue}"/>
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="CapHeight" Value="32"/>
        <Setter Property="Margin" Value="0,4,0,8"/>
    </Style>

    <Style x:Key="A_Style_Control_Loading_StatsDisplay" TargetType="Control">
        <Style.Resources>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin">0,0,0,0</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin_CHS">0,2,0,4</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin_CHT">0,2,0,4</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin_JP">0,2,0,0</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin_CZ">0,2,0,0</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerTitleSlideMargin_FR">0,4,0,4</Thickness>

            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin">0,0,0,0</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin_CHS">2,4,2,1</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin_CHT">2,4,2,1</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin_JP">2,4,2,2</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin_CZ">0,6,0,0</Thickness>
            <Thickness x:Key="A_Thickness_LoadingContainerValueSlideMargin_FR">0,4,0,4</Thickness>
        </Style.Resources>
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid Margin="0,0,0,-7">
                            <StackPanel x:Name="StatsContainer" HorizontalAlignment="Center">
                                <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromBottom}" x:Name="TitleSlide">
                                    <Grid>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}" Margin="{local:LocalizedResource A_Thickness_LoadingContainerTitleSlideMargin}">
                                            <local:FZTextBlock x:Name="StatTitle"
                                                           Text="{Binding StatName, NotifyOnTargetUpdated=True}"
                                                           Style="{StaticResource A_Style_FZTextBlock_StatTitle}"/>
                                        </Decorator>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}" Margin="{local:LocalizedResource A_Thickness_LoadingContainerTitleSlideMargin}">
                                            <local:FZTextBlock x:Name="StatTitlePrev"
                                                           local:PropertyChangeHistory.Input="{Binding StatName}"
                                                           Text="{Binding Path=(local:PropertyChangeHistory.Previous), RelativeSource={RelativeSource Self}}" 
                                                           Style="{StaticResource A_Style_FZTextBlock_StatTitle}"
                                                           Visibility="Collapsed"/>
                                        </Decorator>
                                    </Grid>
                                </ContentControl>
                                <Decorator Height="24"/>
                                <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromTop}" x:Name="ValueSlide">
                                    <Grid>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}" Margin="{local:LocalizedResource A_Thickness_LoadingContainerValueSlideMargin}">
                                            <local:FZTextBlock x:Name="StatValue"
                                                           local:TextBlockInlineMarkup.Markup="{Binding StatValue}" 
                                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_Run_"
                                                           Style="{StaticResource A_Style_FZTextBlock_StatValue}"/>
                                        </Decorator>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}"  Margin="{local:LocalizedResource A_Thickness_LoadingContainerValueSlideMargin}">
                                            <local:FZTextBlock x:Name="StatValuePrev"
                                                           local:PropertyChangeHistory.Input="{Binding StatValue}"
                                                           local:TextBlockInlineMarkup.Markup="{Binding Path=(local:PropertyChangeHistory.Previous), RelativeSource={RelativeSource Self}}" 
                                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_Run_"
                                                           Style="{StaticResource A_Style_FZTextBlock_StatValue}"
                                                           Visibility="Collapsed"/>
                                        </Decorator>
                                    </Grid>
                                </ContentControl>
                            </StackPanel>
                            <local:FZMaterial Height="3" 
                                              Margin="0,0,0,23"
                                              HorizontalAlignment="Center"
                                              local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_LoadingDivider_BlendValueInputChanged}"
                                              local:BlendValue.Input="{Binding ActualWidth, ElementName=StatsContainer}"
                                              Width="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}"/>
                        </Grid>

                        <ControlTemplate.Triggers>
                            <EventTrigger RoutedEvent="Binding.TargetUpdated">
                                <BeginStoryboard>
                                    <local:UIStoryboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="StatTitle" Storyboard.TargetProperty="(FrameworkElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Collapsed}"/>
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="StatTitlePrev" Storyboard.TargetProperty="(FrameworkElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Visible}"/>
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="StatValue" Storyboard.TargetProperty="(FrameworkElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Collapsed}"/>
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="StatValuePrev" Storyboard.TargetProperty="(FrameworkElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Visible}"/>
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames 
                                            Storyboard.TargetName="TitleSlide"
                                                       Storyboard.TargetProperty="Tag">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.0"
                                                  Value="0" />
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.5"
                                                  Value="1" EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}"/>
                                            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                                  Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="0:0:1.16"
                                                  Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                                  Value="0" EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames 
                                            Storyboard.TargetName="ValueSlide"
                                                       Storyboard.TargetProperty="Tag">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.0"
                                                  Value="0" />
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.5"
                                                  Value="1" EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}"/>
                                            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                                  Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                                  Value="0" EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </local:UIStoryboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="A_Style_Control_Loading_StatsDisplay_NoAnimation" TargetType="Control">
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <StackPanel x:Name="StatsContainer" HorizontalAlignment="Center">
                                <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromBottom}" x:Name="TitleSlide">
                                    <Grid>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                            <local:FZTextBlock x:Name="StatTitle"
                                                           Text="{Binding StatName, NotifyOnTargetUpdated=True}" 
                                                           Style="{StaticResource A_Style_FZTextBlock_StatTitle}"/>
                                        </Decorator>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                            <local:FZTextBlock x:Name="StatTitlePrev"
                                                           local:PropertyChangeHistory.Input="{Binding StatName}"
                                                           Text="{Binding Path=(local:PropertyChangeHistory.Previous), RelativeSource={RelativeSource Self}}" 
                                                           Style="{StaticResource A_Style_FZTextBlock_StatTitle}"
                                                           Visibility="Collapsed"/>
                                        </Decorator>
                                    </Grid>
                                </ContentControl>
                                <Decorator Height="24"/>
                                <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromTop}" x:Name="ValueSlide">
                                    <Grid>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                            <local:FZTextBlock x:Name="StatValue"
                                                           Text="{Binding StatValue}"
                                                           Style="{StaticResource A_Style_FZTextBlock_StatValue}"/>
                                        </Decorator>
                                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                            <local:FZTextBlock x:Name="StatValuePrev"
                                                           local:PropertyChangeHistory.Input="{Binding StatValue}"
                                                           Text="{Binding Path=(local:PropertyChangeHistory.Previous), RelativeSource={RelativeSource Self}}"
                                                           Style="{StaticResource A_Style_FZTextBlock_StatValue}"
                                                           Visibility="Collapsed"/>
                                        </Decorator>
                                    </Grid>
                                </ContentControl>
                            </StackPanel>
                            <local:FZMaterial Height="3" 
                                              Margin="0,0,0,23"
                                              HorizontalAlignment="Center"
                                              Width="{Binding ActualWidth, ElementName=StatsContainer}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    
    <Style x:Key="A_Style_Control_Loading_InstallProgress" TargetType="Control">
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <StackPanel>
                            <Grid>
                                <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                    <local:FZTextBlock Text="{Binding InstallationMessage}"
                                        Style="{StaticResource A_Style_FZTextBlock_StatTitle}"/>
                                </Decorator>
                            </Grid>
                            <local:FZMaterial Height="3" 
                                              Margin="0,12,0,6"
                                              Visibility="{Binding InstallationProgress, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                            <Decorator Margin="{local:LocalizedResource A_Thickness_LoadingMargin}" HorizontalAlignment="Center">
                                <Grid Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                                    <local:FZTextBlock 
                                        Text="{Binding InstallationProgress, ConverterParameter=fracpercentage, Converter={StaticResource A_NumUnitConverter_ShowUnit_0dp}}"
                                        Style="{StaticResource A_Style_FZTextBlock_StatValue}" 
                                        Visibility="{Binding InstallationProgress, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                                    <local:FZTextBlock
                                        Text="{Binding CustomSubtitle}"
                                        Style="{StaticResource A_Style_FZTextBlock_StatValue}"
                                        Visibility="{Binding CustomSubtitle, Converter={StaticResource A_StringVisConverter}}"/>
                                </Grid>
                            </Decorator>
                      </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="A_Style_Progressbar_Loading_SmallSpinner" TargetType="ProgressBar" BasedOn="{StaticResource A_Style_ProgressBar_WaitSpinner}">
        <Style.Setters>
            <Setter Property="Width" Value="{StaticResource A_Double_LoadingSpinner_Height}" />
            <Setter Property="Height" Value="{StaticResource A_Double_LoadingSpinner_Height}" />
            <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}"/>
            <Setter Property="HorizontalAlignment" Value="Right" />
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="IsIndeterminate" Value="True"/>
        </Style.Setters>
    </Style>

    <Style x:Key="A_Style_ContentControl_LoadingSpinnerWithMessage"
        TargetType="{x:Type ContentControl}">
        <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel>
                        <ProgressBar Style="{StaticResource A_Style_Progressbar_Loading_SmallSpinner}" 
                                     Margin="0"
                                     DockPanel.Dock="Right"/>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_StatContainer}">
                            <local:FZTextBlock Text="{Binding Content, Converter={StaticResource A_StringToUpper}, RelativeSource={RelativeSource TemplatedParent}}" 
                                   TextAlignment="Right"
                                   VerticalAlignment="Center"
                                   TextWrapping="NoWrap"
                                   MaxWidth="310"
                                   Margin="0,0,14,0"
                                   Style="{StaticResource A_Style_FZTextBlock_StatTitle}"
                                   LineHeight="25"
                                   LineStackingStrategy="BlockLineHeight"
                                   Color="{StaticResource A_Color_SubHeader_Text}"/>
                         </Decorator>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_ContentControl_BottomRight" TargetType="ContentControl">
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Margin" Value="{StaticResource A_Span_LoadingMargin}" />
    </Style>

    <Style x:Key="A_Style_Text_LoadingSmall" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color" Value="#FFFFFF"/>
        <Setter Property="CapHeight" Value="18"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
    </Style>

    <Style x:Key="A_Style_Control_LoadingMini" TargetType="Control">
        <Setter Property="IsHitTestVisible"
                Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel>
                        <ProgressBar Width="{StaticResource A_Double_LoadingSpinner_Height}" Height="{StaticResource A_Double_LoadingSpinner_Height}" HorizontalAlignment="Right"
                                         Canvas.Left="{StaticResource A_Double_LoadingSpinner_Height_Neg}" Canvas.Top="-12"
                                         IsIndeterminate="True"
                                         Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                         DockPanel.Dock="Right">
                            <ProgressBar.LayoutTransform>
                                <ScaleTransform ScaleX="0.5" ScaleY="0.5" />
                            </ProgressBar.LayoutTransform>
                        </ProgressBar>

                        <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}" DockPanel.Dock="Left" Margin="0,0,5,0">
                            <local:FZTextBlock Text="{local:Loc Main.IDS_Loading_Generic}" Style="{StaticResource A_Style_Text_LoadingSmall}"/>
                        </Decorator>

                        <!--<Canvas HorizontalAlignment="Right">
                            <ProgressBar Width="{StaticResource A_Double_LoadingSpinner_Height}" Height="{StaticResource A_Double_LoadingSpinner_Height}"
                                         Canvas.Left="{Stat A_Double_LoadingSpinner_Height_Neg}" Canvas.Top="-12"
                                         IsIndeterminate="True"
                                         Style="{StaticResource A_Style_ProgressBar_WaitSpinner}">
                                <ProgressBar.RenderTransform>
                                    <ScaleTransform ScaleX="0.5" ScaleY="0.5" />
                                </ProgressBar.RenderTransform>
                            </ProgressBar>
                        </Canvas>-->
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_CyclingLoadingBackground" TargetType="Control">
        <Style.Resources>
            <Style x:Key="A_Style_FZMaterial_LoadingMaterial" TargetType="local:FZMaterial">
                <Setter Property="Stretch" Value="UniformToFill" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="GreedyMeasure" Value="True" />
            </Style>
        </Style.Resources>
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <local:FZMaterial x:Name="Current" 
                                              Style="{StaticResource A_Style_FZMaterial_LoadingMaterial}" 
                                              ImageSource="{Binding CurrentImageBackground, NotifyOnTargetUpdated=True}"/>
                            <local:FZMaterial x:Name="Previous" 
                                              Style="{StaticResource A_Style_FZMaterial_LoadingMaterial}" 
                                              local:PropertyChangeHistory.Input="{Binding CurrentImageBackground}"
                                              ImageSource="{Binding Path=(local:PropertyChangeHistory.Previous), RelativeSource={RelativeSource Self}}"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <EventTrigger RoutedEvent="Binding.TargetUpdated">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Current" Storyboard.TargetProperty="Opacity" From="0.0"  To="1.0" Duration="0:0:.5" />
                                        <DoubleAnimation Storyboard.TargetName="Previous" Storyboard.TargetProperty="Opacity" From="1.0"  To="0.0" Duration="0:0:.5" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="A_Style_Control_Loading_ControllerMappingIE" TargetType="Control">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
                            <Control Style="{StaticResource A_Style_Control_ControllerMapping}" Visibility="{Binding IsWheel, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            <Control Style="{StaticResource A_Style_Control_WheelMapping}" Visibility="{Binding IsWheel, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            <local:FZTextBlock Text="{local:Loc Main.IDS_Loading_ControllerDesc}" Margin="76,53" Style="{StaticResource A_Style_FZTextBlock_Heading_Small}" FontSize="32" Color="{StaticResource A_Color_SubHeader_Text}" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
</ResourceDictionary>
