<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">

    <System:Double x:Key="A_Double_FlyerRotation_FrontFaceShowing">0</System:Double>
    <System:Double x:Key="A_Double_FlyerRotation_BackFaceShowing">180</System:Double>

    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolToMaterialColor">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="#E6B32F"/>
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="#00F3FF"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolToColorText_Title">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="#BF000000"/>
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="#391440"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolToHeaderColorText">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="#BF000000"/>
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{StaticResource A_Color_White}"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_FlyerBackImageFromMode">
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.BucketListSuper7}" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDBACK.png" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.BucketListSuper7HighStakes}" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_HIGHSTAKES_CARDBACK.png" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_CardIndexToCardTagImage">
        <local:MappingConverterEntry Key="0" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_1.png"/>
        <local:MappingConverterEntry Key="1" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_2.png"/>
        <local:MappingConverterEntry Key="2" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_3.png"/>
        <local:MappingConverterEntry Key="3" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_4.png"/>
        <local:MappingConverterEntry Key="4" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_5.png"/>
        <local:MappingConverterEntry Key="5" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_6.png"/>
        <local:MappingConverterEntry Key="6" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Back/SUPER16_CARDTAG_7.png"/>
    </local:MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_UserName" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}" >
        <Setter Property="Color" Value="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolToHeaderColorText}}" />
        <Setter Property="CapHeight" Value="28" />
        <Setter Property="Margin" Value="0,0,0,6" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsCommunityChallenge}" Value="True">
                <Setter Property="MaxWidth" Value="523"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_Presents" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
        <Setter Property="Color" Value="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolToHeaderColorText}}" />
        <Setter Property="CapHeight" Value="15" />
        <Setter Property="Margin" Value="0,0,0,15" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
    </Style>

    <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Flyer_Desaturated" BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            CornerRadius="{StaticResource A_CornerRadius_Inner_All}"
            Saturation="0.3"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPreset_Flyer_Additive" BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            CornerRadius="{StaticResource A_CornerRadius_Inner_All}"
            AlphaMode="Additive"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPreset_Flyer_Multiply" BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            CornerRadius="{StaticResource A_CornerRadius_Inner_All}"
            AlphaMode="Multiply"/>

    <Style x:Key="A_Style_Flyer_Image" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="{Binding FlyerImagePath}"/>
        <Setter Property="Stretch" Value="Uniform"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
    </Style>

    <Style x:Key="A_Style_Flyer_Image_Back" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="{Binding SceneEnum, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_Converter_FlyerBackImageFromMode}}"/>
        <Setter Property="Stretch" Value="Uniform"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Line_Vertical" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="8"/>
        <Setter Property="Height" Value="600"/>
        <Setter Property="Visibility" Value="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
    </Style>
    <Style x:Key="A_Style_FZMaterial_Line_Vertical_Left" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_Line_Vertical}">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Complete/SUPER16_CARD_GOLDLEFT.PNG"/>
    </Style>
    <Style x:Key="A_Style_FZMaterial_Line_Vertical_Right" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_Line_Vertical}">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Complete/SUPER16_CARD_GOLDRIGHT.PNG"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Header" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="472"/>
        <Setter Property="Height" Value="212"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerTopOnly}"/>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Active/SUPER16_CARD_HEADER.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsComplete}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Complete/SUPER16_CARD_GOLDHEADER.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZMaterial_Footer" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="472"/>
        <Setter Property="Height" Value="212"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerBottomOnly}"/>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Active/SUPER16_CARD_FOOTER.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsComplete}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Complete/SUPER16_CARD_GOLDFOOTER.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Thickness x:Key="A_Thickness_LargeCarouselTileMargin">0,0,0,0</Thickness>
    <System:Double x:Key="A_Double_BucketList_TileItem_Width">488</System:Double>
    <System:Double x:Key="A_Double_BucketList_TileItem_Height">710</System:Double>

    <System:Double x:Key="A_Double_BucketList_Flyer_Width">472</System:Double>
    <System:Double x:Key="A_Double_BucketList_Flyer_Height">710</System:Double>
    <System:Double x:Key="A_Double_BucketList_Flyer_FlyerHalfWidth">236</System:Double>

    <TransformGroup x:Key="A_TransformGroup_TitleMaterial_Skew">
        <SkewTransform AngleY="-10.35" CenterX="0.5" CenterY="0.5"/>
    </TransformGroup>

    <Style x:Key="A_Style_FZMaterial_FavoritesFlag" TargetType="local:FZMaterial">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/SUPER16_FAVE_BOOKMARK.png"/>
        <Setter Property="Width" Value="90"/>
        <Setter Property="Height" Value="100"/>
        <Setter Property="Visibility" Value="Hidden"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsFavorite}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Visibility" Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolTo_PillBackgroundColor">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="#40000000"/>
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="#391440"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolTo_OptionsPillTextColor">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{StaticResource A_Color_White}"/>
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="#00F3FF"/>
    </local:MappingConverter>

    <DataTemplate x:Key="A_ControlTemplate_OptionsHighlight_Pill">
        <local:FZMaterial Visibility="{Binding Show, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                          Color="{Binding DataContext.IsComplete, RelativeSource={RelativeSource AncestorType=ItemsControl}, Converter={StaticResource A_MappingConverter_IsCompleteBoolTo_PillBackgroundColor}}"
                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" HorizontalAlignment="Center"
                          Margin="0,0,6,0"
                          Height="32">
            <local:FZTextBlock Text="{Binding Description}"
                               Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                               Color="{Binding DataContext.IsComplete, RelativeSource={RelativeSource AncestorType=ItemsControl}, Converter={StaticResource A_MappingConverter_IsCompleteBoolTo_OptionsPillTextColor}}"
                               FontSize="22" MaxWidth="90"
                               VerticalAlignment="Center"
                               Margin="5,0"/>
        </local:FZMaterial>
    </DataTemplate>

    <ImageBrush x:Key="A_BitmapImage_GamerPic_Silhouette" ImageSource="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/SUPER16_GAMERPIC_MASK.png"/>

    <Style x:Key="A_Style_Control_BucketListFlyer_Front" TargetType="Control">
        <Setter Property="Height" Value="{StaticResource A_Double_BucketList_Flyer_Height}" />
        <Setter Property="Width" Value="{StaticResource A_Double_BucketList_Flyer_Width}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid Margin="0">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_Flyer_Image}"/>
                            <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/Flyer/Complete/SUPER16_GOLD.png" 
                                              Visibility="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                              Stretch="Uniform" Opacity="1.0"/>

                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Header}" VerticalAlignment="Top"/>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Footer}" VerticalAlignment="Bottom"/>

                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Bottom">
                                <Decorator LayoutTransform="{StaticResource A_TransformGroup_TitleMaterial_Skew}"
                                           VerticalAlignment="Bottom" HorizontalAlignment="Left">
                                    <local:FZMaterial MinWidth="0" MaxWidth="400" Height="53" VerticalAlignment="Bottom"
                                                      Color="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolToMaterialColor}}">
                                        <local:FZTextBlock Text="{Binding Title, Converter={StaticResource A_StringToUpper}}" 
                                                           VerticalAlignment="Center" HorizontalAlignment="Left" Margin="16,0,16,0"
                                                           CapHeight="34" FontFamily="Horizon_A" Color="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolToColorText_Title}}"/>
                                    </local:FZMaterial>
                                </Decorator>
                                <Decorator Height="140"/>
                            </StackPanel>

                            <Decorator Margin="0,0,0,65" 
                                       MaxWidth="380"
                                       Height="48"
                                       HorizontalAlignment="Left" VerticalAlignment="Bottom">
                                <Decorator.RenderTransform>
                                    <TransformGroup>
                                        <RotateTransform Angle="-11"/>
                                        <SkewTransform AngleX="-8"/>
                                    </TransformGroup>
                                </Decorator.RenderTransform>
                                <local:FZTextBlock Text="{Binding Description, Converter={StaticResource A_StringToUpper}}"
                                           Color="{StaticResource A_Color_White}"
                                           TextWrapping="Wrap"
                                           VerticalAlignment="Center" HorizontalAlignment="Left" Margin="16,-15,0,0"
                                           CapHeight="17" FontFamily="Horizon_A"/>
                            </Decorator>

                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Line_Vertical_Left}" HorizontalAlignment="Left"/>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Line_Vertical_Right}" HorizontalAlignment="Right"/>
                        </Grid>

                        <Grid>
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="8">
                                <local:FZMaterial Color="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolTo_PillBackgroundColor}}"
                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                                  Margin="0,0,6,0" MaxWidth="134"
                                                  Visibility="{Binding PlaysCount, Converter={StaticResource A_Converter_VisibleIfGreaterThanZero}}"
                                                  Height="32">
                                    <StackPanel Orientation="Horizontal" Margin="5,0">
                                        <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Series3/UGC_Plays.png" Width="28" Height="28"/>
                                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                           Color="{StaticResource A_Color_White}"
                                                           FontSize="22" MaxWidth="90"
                                                           VerticalAlignment="Center"
                                                           Margin="3,0"
                                                           Text="{Binding PlaysCount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
                                    </StackPanel>
                                </local:FZMaterial>

                                <local:FZMaterial Color="{Binding IsComplete, Converter={StaticResource A_MappingConverter_IsCompleteBoolTo_PillBackgroundColor}}"
                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                                  Margin="0,0,6,0" MaxWidth="134"
                                                  Visibility="{Binding LikesCount, Converter={StaticResource A_Converter_VisibleIfGreaterThanZero}}"
                                                  Height="32">
                                    <StackPanel Orientation="Horizontal" Margin="5,0">
                                        <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/A_Star.png" Width="20" Height="20" Margin="2,0,2,0"/>
                                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                           Color="{StaticResource A_Color_White}"
                                                           FontSize="22" MaxWidth="90"
                                                           VerticalAlignment="Center"
                                                           Margin="3,0"
                                                           Text="{Binding LikesCount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
                                    </StackPanel>
                                </local:FZMaterial>
                            </StackPanel>

                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FavoritesFlag}" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,-12.5,38,0"/>

                            <DockPanel VerticalAlignment="Top" Margin="31,72,0,0">
                                <Grid Width="94" Height="94" DockPanel.Dock="Left">
                                        <local:FZMaterial Color="#00000000" OpacityMask="{StaticResource A_BitmapImage_GamerPic_Silhouette}">
                                            <local:FZMaterial x:Name="GamerPicMaterial" ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicConverter}, ConverterParameter={StaticResource A_Size_JoinFriendGamerPicSizeParams}}"
                                                          Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}"/>
                                        </local:FZMaterial>
                                    <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                Visibility="{Binding Downloaded, ElementName=GamerPicMaterial, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                                </Grid>
                                <StackPanel VerticalAlignment="Center" Margin="6,0,0,0">
                                    <StackPanel.RenderTransform>
                                        <TransformGroup>
                                            <RotateTransform Angle="-8"/>
                                            <SkewTransform AngleX="-8"/>
                                        </TransformGroup>
                                    </StackPanel.RenderTransform>
                                    <local:FZTextBlock Text="{Binding UserProfile.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" MaxWidth="165"
                                                   Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_UserName}"/>
                                    <local:FZTextBlock Text="{local:Loc BucketListBlueprint.IDS_Presents}" MaxWidth="120"
                                                   Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_Presents}" />
                                </StackPanel>
                            </DockPanel>

                            <ItemsControl HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,26"
                                          ItemTemplate="{StaticResource A_ControlTemplate_OptionsHighlight_Pill}"
                                          ItemsSource="{Binding UIOptionHighlights}">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <DockPanel IsItemsHost="True" MaxWidth="384" Height="32" HorizontalAlignment="Right"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                            </ItemsControl>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_BucketListFlyer_Back" TargetType="Control">
        <Setter Property="Height" Value="{StaticResource A_Double_BucketList_Flyer_Height}" />
        <Setter Property="Width" Value="{StaticResource A_Double_BucketList_Flyer_Width}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid>
                        <local:FZMaterial Style="{StaticResource A_Style_Flyer_Image_Back}"/>
                        <local:FZMaterial ImageSource="{Binding Path=(Selector.AlternationIndex), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}, Converter={StaticResource A_Converter_CardIndexToCardTagImage}}" Width="94" Height="112" Margin="18,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_Control_BucketListFlyer_Internal" TargetType="Control">
        <ControlTemplate.Resources>
            <RotateTransform3D x:Key="A_RotateTransform3D_FlyerFlip180"  CenterX="{StaticResource A_Double_BucketList_Flyer_FlyerHalfWidth}">
                <RotateTransform3D.Rotation>
                    <AxisAngleRotation3D Axis="0,-1,0" Angle="180" />
                </RotateTransform3D.Rotation>
            </RotateTransform3D>
        </ControlTemplate.Resources>
        <Grid Margin="12">
            <Grid x:Name="RotationContainer">
                <local:ZPanel.Transform>
                    <RotateTransform3D CenterX="{StaticResource A_Double_BucketList_Flyer_FlyerHalfWidth}">
                        <RotateTransform3D.Rotation>
                            <AxisAngleRotation3D x:Name="FlyerRotation"  Axis="0,-1,0" Angle="{Binding FontSize, RelativeSource={RelativeSource TemplatedParent}}" />
                        </RotateTransform3D.Rotation>
                    </RotateTransform3D>
                </local:ZPanel.Transform>

                <Grid x:Name="FrontFace">
                    <local:FZMaterial Margin="-12" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
                    <ContentControl Style="{StaticResource A_Style_Control_BucketListFlyer_Front}" />
                </Grid>

                <Grid x:Name="BackFace" Visibility="Collapsed" local:ZPanel.Transform="{StaticResource A_RotateTransform3D_FlyerFlip180}">
                    <local:FZMaterial Margin="-12" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"/>
                    <Control Style="{StaticResource A_Style_Control_BucketListFlyer_Back}" />
                </Grid>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="-1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Visible" />
                <Setter TargetName="BackFace" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Collapsed" />
                <Setter TargetName="BackFace" Property="Visibility" Value="Visible" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Storyboard x:Key="A_Storyboard_ShowBackOfFlyer_Bucketlist">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FontSize"
                                       Storyboard.TargetName="Flyer">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="180.0">
                <EasingDoubleKeyFrame.EasingFunction>
                    <ExponentialEase EasingMode="EaseInOut" />
                </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="False"/>
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.3" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
        <StringAnimationUsingKeyFrames Storyboard.TargetName="Audio"
                                       Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
            <DiscreteStringKeyFrame KeyTime="0" Value="/Master/UI/PreRace/HZ3_SFX_UI_PreRace_ViewFlyerBack" />
        </StringAnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Key="A_Storyboard_ShowFrontOfFlyer_Bucketlist">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FontSize"
                                       Storyboard.TargetName="Flyer">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.0">
                <EasingDoubleKeyFrame.EasingFunction>
                    <ExponentialEase EasingMode="EaseInOut" />
                </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="False"/>
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.3" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
        <StringAnimationUsingKeyFrames Storyboard.TargetName="Audio"
                                       Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
            <DiscreteStringKeyFrame KeyTime="0" Value="/Master/UI/PreRace/HZ3_SFX_UI_PreRace_ViewFlyerFront" />
        </StringAnimationUsingKeyFrames>
    </Storyboard>


    <Storyboard x:Key="A_Storyboard_ShowBackOfFlyer_Bucketlist_Instant">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FontSize"
                                       Storyboard.TargetName="Flyer">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="180.0" />
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Key="A_Storyboard_ShowFrontOfFlyer_Bucketlist_Instant">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FontSize"
                                       Storyboard.TargetName="Flyer">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.0" />
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
    </Storyboard>

</ResourceDictionary>
