<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_TicketWidth">378</System:Double>
    <System:Double x:Key="A_Double_TicketHeight">236</System:Double>
    <System:Double x:Key="A_Double_TicketHeightWithMargin">245</System:Double>
    <local:LinearTransformConverter x:Key="A_LinearTransformConverter_ListHeight"
                                    Scale="{StaticResource A_Double_TicketHeightWithMargin}"/>
    <Thickness x:Key="A_Thickness_TicketToPrizeBoxBorder">-25</Thickness>
    <local:LinearTransformConverter x:Key="A_LinearTransformConverter_AnimationValueScale"
                                    Scale="{StaticResource A_Double_TicketHeightWithMargin}"
                                    Add="-342.5" />

    <!-- These resources are referenced from the code-behind. Removing them WILL cause a crash. -->
    <PowerEase x:Key="PART_A_EasingFunction_TombolaWindUpEase" Power="2.5" EasingMode="EaseInOut"/>
    <PowerEase x:Key="PART_A_EasingFunction_TombolaLandingEase" Power="2.5"/>
    <ElasticEase x:Key="PART_A_EasingFunction_TombolaLockInEase" Oscillations="3" Springiness="2" EasingMode="EaseOut" />

    <KeyTime x:Key="PART_A_KeyTime_TombolaLeftWindUpTime">0:0:0.66</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaMidWindUpTime">0:0:0.66</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaRightWindUpTime">0:0:0.66</KeyTime>

    <KeyTime x:Key="PART_A_KeyTime_TombolaLeftLandingTime">0:0:6.5</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaMidLandingTime">0:0:7.2</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaRightLandingTime">0:0:7.67</KeyTime>

    <KeyTime x:Key="PART_A_KeyTime_TombolaLeftLockInTime">0:0:7.07</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaMidLockInTime">0:0:7.77</KeyTime>
    <KeyTime x:Key="PART_A_KeyTime_TombolaRightLockInTime">0:0:8.17</KeyTime>

    <System:TimeSpan x:Key="PART_A_TimeSpan_TombolaSkipOffset">0:0:5.5</System:TimeSpan>
    <!-- End of resources referenced from code-behind. -->

    <System:TimeSpan x:Key="A_TimeSpan_TombolaSkipDisabledOffset">-0:0:0.233</System:TimeSpan>
    <System:TimeSpan x:Key="A_TimeSpan_TombolaSkipEnabledOffset">0:0:0.0</System:TimeSpan>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaSkipCompleteTime"
        KeyTime="0:0:0.0"
        Offset="{StaticResource PART_A_TimeSpan_TombolaSkipOffset}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaSkipDisabledTime"
        KeyTime="{StaticResource A_KeyTime_TombolaSkipCompleteTime}"
        Offset="{StaticResource A_TimeSpan_TombolaSkipDisabledOffset}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaSkipEnabledTime"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftWindUpTime}"
        Offset="{StaticResource A_TimeSpan_TombolaSkipEnabledOffset}"/>


    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaPlayWinAudio"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftLockInTime}"
        Offset="-0:0:0.25"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLockInFlashFadeInStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaFlashOffsetFadeInStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLockInFlashFadeInEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaFlashOffsetFadeInEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLockInFlashFadeOutStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaFlashOffsetFadeOutStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLockInFlashFadeOutEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaFlashOffsetFadeOutEnd}"/>


    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLitBulbsFadeInStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftWindUpTime}"
        Offset="{StaticResource A_TimeSpan_TombolaLitBulbsFadeInStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLitBulbsFadeInEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftWindUpTime}"
        Offset="{StaticResource A_TimeSpan_TombolaLitBulbsFadeInEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLitBulbsFadeOutStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaLitBulbsFadeOutStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLitBulbsFadeOutEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaLitBulbsFadeOutEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLitBulbsMotionEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaLitBulbsMotionOffset}"/>


    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLeftPrizeGlowFadeInStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLeftPrizeGlowFadeInEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaLeftLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLeftPrizeGlowFadeOutStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaLeftPrizeGlowFadeOutEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaMidPrizeGlowFadeInStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaMidLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaMidPrizeGlowFadeInEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaMidLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaMidPrizeGlowFadeOutStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaMidPrizeGlowFadeOutEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaRightPrizeGlowFadeInStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaRightPrizeGlowFadeInEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeInEnd}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaRightPrizeGlowFadeOutStart"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutStart}"/>

    <local:OffsetKeyTime x:Key="A_KeyTime_TombolaRightPrizeGlowFadeOutEnd"
        KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"
        Offset="{StaticResource A_TimeSpan_TombolaPrizeGlowFadeOutEnd}"/>


    <Style x:Key="A_Style_FZTextBlock_CreditPrizeDetails_PrizeValue"
        BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
        TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="Color"
                Value="{StaticResource A_Color_Tombola_PrizeValue}" />
        <Setter Property="FontSize" Value="88" />
        <Setter Property="Text"
                Value="{Binding PrizeValue, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" />
        <Setter Property="Stretch"
                Value="None" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_CarPrizeDetails_CarModel"
           BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
           TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="Margin" Value="9" />
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="StretchDirection" Value="DownOnly" />
        <Setter Property="TextWrapping" Value="NoWrap" />
        <Setter Property="Color" Value="{StaticResource A_Color_TombolaCarAltText}" />
        <Setter Property="FontSize" Value="36" />
    </Style>


    <Style x:Key="A_Style_FZMaterial_TombolaPrizeBG" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_BG.png"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_TombolaGlassMask" TargetType="local:FZMaterial">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_Standard}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_Interactive}"/>
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Glass_Mask.png"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_TombolaPrizeBoxes" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Boxes.png"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_TombolaLogoFrame" TargetType="local:FZMaterial">
        <Setter Property="Width" Value="540"/>
        <Setter Property="Height" Value="540"/>
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Wheelspin_Logo_Frame.png"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_TombolaLogo" TargetType="local:FZMaterial">
        <Setter Property="Width" Value="540"/>
        <Setter Property="Height" Value="540"/>
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Wheelspin_Logo.png"/>
    </Style>

    <DataTemplate DataType="{x:Type local:TombolaTicketCredits}" >
        <Decorator Height="{StaticResource A_Double_TicketHeightWithMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_TicketWidth}"
                      Height="{StaticResource A_Double_TicketHeight}"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center"
                      Preset="{Binding PrizeRarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}">
                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Credits.png" >
                    <Viewbox MaxWidth="314"
                        StretchDirection="DownOnly"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center">
                        <StackPanel Orientation="Horizontal"
                            Style="{StaticResource A_Style_Decorator_TombolaCreditsSkewTransform}">
                            <local:FZMaterial Width="60"
                                Height="60"
                                ImageSource="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_64_FilledCircle.png"
                                VerticalAlignment="Center"/>
                            <Decorator Width="6"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CreditPrizeDetails_PrizeValue}"
                                VerticalAlignment="Center"
                                Effect="{StaticResource A_Effect_HighContrastModeDropShadow_Large}" />
                        </StackPanel>
                    </Viewbox>
                </local:FZMaterial>
            </local:FZMaterial>
        </Decorator>
    </DataTemplate>

    <GridLength x:Key="A_GridLength_TombolaTicket_PrizeTop">66</GridLength>
    <GridLength x:Key="A_GridLength_TombolaTicket_PrizeBottom">66</GridLength>

    <DataTemplate DataType="{x:Type local:TombolaTicketCar}">
        <Decorator Height="{StaticResource A_Double_TicketHeightWithMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_TicketWidth}"
                    Height="{StaticResource A_Double_TicketHeight}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Preset="{Binding PrizeRarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}">
                <local:FZMaterial x:Name="Backing" ImageSource="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Generic.png">
                    <Grid Margin="16">
                        <local:FZMaterial Width="324"
                            Height="202"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            ImageSource="{Binding ForegroundImage}"
                                  />
                        <Control Style="{StaticResource A_Style_Control_SuperTombolaHorizonEditionBlammo}"
                            Margin="6"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Left"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CarPrizeDetails_CarModel}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top"
                            Text="{Binding PrizeName, Converter={StaticResource A_StringToUpper}}" />
                    </Grid>
                </local:FZMaterial>
            </local:FZMaterial>
        </Decorator>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding PrizeRarity}" Value="{x:Static local:XAMLRarity.HorizonEdition}">
                <Setter TargetName="Backing" Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Car_HorizonEdition.png" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:TombolaTicketEmote}">
        <Decorator Height="{StaticResource A_Double_TicketHeightWithMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_TicketWidth}"
                      Height="{StaticResource A_Double_TicketHeight}"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center"
                      Preset="{Binding PrizeRarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}">
                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Generic.png">
                    <Grid Margin="16">
                        <local:FZMaterial Width="180"
                            Height="180"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            ImageSource="{Binding ForegroundImage}"
                            />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CarPrizeDetails_CarModel}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top"
                            Text="{Binding PrizeName, Converter={StaticResource A_StringToUpper}}"/>
                    </Grid>
                </local:FZMaterial>
            </local:FZMaterial>
        </Decorator>
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:TombolaTicketHorn}">
        <Decorator Height="{StaticResource A_Double_TicketHeightWithMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_TicketWidth}"
                    Height="{StaticResource A_Double_TicketHeight}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Preset="{Binding PrizeRarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}">
                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Horn.png">
                    <Decorator Margin="16">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CarPrizeDetails_CarModel}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top"
                            Color="#FFFFFF"
                            Text="{Binding PrizeName, Converter={StaticResource A_StringToUpper}}"
                            Effect="{StaticResource A_Effect_HighContrastModeDropShadow_Large}" />
                    </Decorator>
                </local:FZMaterial>
            </local:FZMaterial>
        </Decorator>
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:TombolaTicketClothing}">
        <Decorator Height="{StaticResource A_Double_TicketHeightWithMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_TicketWidth}"
                    Height="{StaticResource A_Double_TicketHeight}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Preset="{Binding PrizeRarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}">
                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Tombola/Super/Prize_Backing_Generic.png">
                    <Grid Margin="16">
                        <local:FZMaterial Width="180"
                            Height="180"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            ImageSource="{Binding ForegroundImage}"
                            />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CarPrizeDetails_CarModel}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top"
                            Text="{Binding PrizeName, Converter={StaticResource A_StringToUpper}}" />
                    </Grid>
                </local:FZMaterial>
            </local:FZMaterial>
        </Decorator>
    </DataTemplate>

    <Style x:Key="A_Style_TicketsList"
        TargetType="ItemsControl"
        BasedOn="{StaticResource A_Style_TicketsList_Base}">
        <Setter Property="Height" Value="{Binding Count, Converter={StaticResource A_LinearTransformConverter_ListHeight}}"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_SpinnerContainer_Base"
        TargetType="{x:Type FrameworkElement}">
        <Setter Property="Width" Value="{StaticResource A_Double_TicketWidth}"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_SpinnerContainer_Left"
        TargetType="{x:Type FrameworkElement}"
        BasedOn="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Base}">
        <Setter Property="Margin" Value="0,0,946,0"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_SpinnerContainer_Mid"
        TargetType="{x:Type FrameworkElement}"
        BasedOn="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Base}">
        <Setter Property="Margin" Value="0,0,512,0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_SpinnerContainer_Right"
        TargetType="{x:Type FrameworkElement}"
        BasedOn="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Base}">
        <Setter Property="Margin" Value="0,0,78,0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangle_SuperTombolaHardGlow"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaHardGlow}"
        Thickness="16"/>

    <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangle_SuperTombolaHardGlow_HorizonEdition"
        BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaHardGlow_HorizonEdition}"
        Thickness="16"/>

    <Style x:Key="A_Style_FZMaterial_WinningPrizeHardGlow_SuperTombola"
        TargetType="{x:Type local:FZMaterial}"
        BasedOn="{StaticResource A_Style_FZMaterial_WinningPrizeHardGlow}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_SuperTombolaHardGlow}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding PrizeRarity}" Value="{x:Static local:XAMLRarity.HorizonEdition}">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_SuperTombolaHardGlow_HorizonEdition}"/>
                <Setter Property="Color" Value="#FFFFFFFF"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_SuperTombolaPanelContents">
        <Grid>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundGradient}"/>

            <!-- Left Panel -->
            <Grid x:Name="LeftPanel" Margin="25,0" HorizontalAlignment="Left">
                <Grid Margin="0,-70,0,0">
                    <ItemsControl Style="{StaticResource A_Style_ItemsControl_TombolaBackgroundSpokes}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaBackgroundSpoke}"/>
                    </ItemsControl>

                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLogoFrame}"/>

                    <ItemsControl x:Name="TombolaLitBulbsContainer"
                        Style="{StaticResource A_Style_ItemsControl_TombolaLitBulbs_Base}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.2"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.4"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.6"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.8"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="1.0"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.8"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLitBulb}" Opacity="0.4"/>
                    </ItemsControl>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaLogo}"/>
                </Grid>

                <ContentControl Style="{StaticResource A_Style_ContentControl_TombolaSpinsRemaining}"
                    Content="{Binding SpinsRemaining}"/>
            </Grid>

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaPrizeBG}"/>

            <!-- Spinner Blocks -->
            <Decorator x:Name="SpinnerBlockLeft"
                Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Left}">
                <Grid ClipToBounds="True" Style="{StaticResource A_Style_Grid_MotionBlur}" Margin="0,-20"
                      local:MotionBlurEffect.MotionBlurPositionYControl="{Binding (Control.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y), ElementName=TicketListLeft}">
                    <ItemsControl DataContext="{Binding TicketLists[0]}"
                        Style="{StaticResource A_Style_TicketsList}"
                        x:Name="TicketListLeft">
                        <ItemsControl.RenderTransform>
                            <TransformGroup>
                                <TranslateTransform Y="{Binding TicketListsTranslateY0, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_LinearTransformConverter_AnimationValueScale}}" />
                            </TransformGroup>
                        </ItemsControl.RenderTransform>
                    </ItemsControl>
                </Grid>
            </Decorator>

            <Decorator x:Name="SpinnerBlockMid"
                Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Mid}">
                <Grid ClipToBounds="True" Style="{StaticResource A_Style_Grid_MotionBlur}" Margin="0,-20"
                      local:MotionBlurEffect.MotionBlurPositionYControl="{Binding (Control.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y), ElementName=TicketListMid}">
                    <ItemsControl DataContext="{Binding TicketLists[1]}"
                        Style="{StaticResource A_Style_TicketsList}"
                        x:Name="TicketListMid">
                        <ItemsControl.RenderTransform>
                            <TransformGroup>
                                <TranslateTransform Y="{Binding TicketListsTranslateY1, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_LinearTransformConverter_AnimationValueScale}}" />
                            </TransformGroup>
                        </ItemsControl.RenderTransform>
                    </ItemsControl>
                </Grid>
            </Decorator>

            <Decorator x:Name="SpinnerBlockRight"
                Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Right}">
                <Grid ClipToBounds="True" Style="{StaticResource A_Style_Grid_MotionBlur}" Margin="0,-20"
                      local:MotionBlurEffect.MotionBlurPositionYControl="{Binding (Control.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y), ElementName=TicketListRight}">
                    <ItemsControl DataContext="{Binding TicketLists[2]}"
                        Style="{StaticResource A_Style_TicketsList}"
                        x:Name="TicketListRight">
                        <ItemsControl.RenderTransform>
                            <TransformGroup>
                                <TranslateTransform Y="{Binding TicketListsTranslateY2, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_LinearTransformConverter_AnimationValueScale}}" />
                            </TransformGroup>
                        </ItemsControl.RenderTransform>
                    </ItemsControl>
                </Grid>
            </Decorator>

            <local:FZMaterialGlassCapture/>

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaGlassMask}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaPrizeBoxes}"/>

            <Grid VerticalAlignment="Center"
                Height="{StaticResource A_Double_TicketHeight}">
                <Decorator x:Name="SpinnerContainer_SoftGlow_Left"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Left}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeSoftGlow}"
                            DataContext="{Binding WinningTickets[0]}"/>
                    </Grid>
                </Decorator>

                <Decorator x:Name="SpinnerContainer_SoftGlow_Mid"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Mid}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeSoftGlow}"
                            DataContext="{Binding WinningTickets[1]}"/>
                    </Grid>
                </Decorator>

                <Decorator x:Name="SpinnerContainer_SoftGlow_Right"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Right}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeSoftGlow}"
                            DataContext="{Binding WinningTickets[2]}"/>
                    </Grid>
                </Decorator>

                <Decorator x:Name="SpinnerContainer_HardGlow_Left"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Left}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeHardGlow_SuperTombola}"
                            DataContext="{Binding WinningTickets[0]}"/>
                    </Grid>
                </Decorator>

                <Decorator x:Name="SpinnerContainer_HardGlow_Mid"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Mid}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeHardGlow_SuperTombola}"
                            DataContext="{Binding WinningTickets[1]}"/>
                    </Grid>
                </Decorator>

                <Decorator x:Name="SpinnerContainer_HardGlow_Right"
                    Style="{StaticResource A_Style_FrameworkElement_SpinnerContainer_Right}"
                    Opacity="0">
                    <Grid Margin="{StaticResource A_Thickness_TicketToPrizeBoxBorder}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningPrizeHardGlow_SuperTombola}"
                            DataContext="{Binding WinningTickets[2]}"/>
                    </Grid>
                </Decorator>
            </Grid>

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaArrow_Right}"
                Margin="0,0,26,0"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TombolaArrow_Left}"
                Margin="544,0,0,0"/>

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

            <!--
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRacePanel_Vignette}" />
            -->

            <local:FZMaterial x:Name="TombolaFlash"
                Style="{StaticResource A_Style_FZMaterial_TombolaFlash}"/>
            <local:FZMaterial x:Name="TombolaSkipFlash"
                Style="{StaticResource A_Style_FZMaterial_TombolaFlash}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding AnimationState}" Value="{x:Static local:TombolaAnimationStates.Spinning}">
                <DataTrigger.EnterActions>
                    <local:BeginUIStoryboard x:Name="BeginStoryboard_SuperTombola">
                        <local:UIStoryboard>
                            <local:UIStoryboard.TriggerAnimation>
                                <local:RaiseFzEvent EventName="SkipEnabled"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_TombolaSkipEnabledTime}"/>
                                <local:RaiseFzEvent EventName="SkipDisabled"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_TombolaSkipDisabledTime}"/>
                                <local:RaiseFzEvent EventName="SpinComplete"
                                    local:TriggerAnimation.KeyTime="{StaticResource PART_A_KeyTime_TombolaRightLockInTime}"/>
                                <local:RaiseFzEvent EventName="PlayWinAudio"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_TombolaPlayWinAudio}"/>
                                <local:StartAudioTrigger EventName="AudioUITrigger_SuperWheelSpin_Spin"
                                    local:TriggerAnimation.KeyTime="0:0:0.0"/>
                            </local:UIStoryboard.TriggerAnimation>

                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="TombolaLitBulbsContainer"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLitBulbsFadeInStart}"
                                    Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLitBulbsFadeInEnd}"
                                    Value="1.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLitBulbsFadeOutStart}"
                                    Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLitBulbsFadeOutEnd}"
                                    Value="0.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseIn}" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="TombolaLitBulbsContainer"
                                Storyboard.TargetProperty="(FrameworkElement.Tag)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0" />
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLitBulbsMotionEnd}"
                                    Value="{StaticResource A_Double_TombolaLitBulbs_SpinsCount}" 
                                    EasingFunction="{StaticResource PART_A_EasingFunction_TombolaLandingEase}" />
                            </DoubleAnimationUsingKeyFrames>

                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_SoftGlow_Left"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_SoftGlow_Mid"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_SoftGlow_Right"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_HardGlow_Left"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLeftPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_HardGlow_Mid"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaMidPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="SpinnerContainer_HardGlow_Right"
                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeInStart}" Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeInEnd}" Value="1.0"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeOutStart}" Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaRightPrizeGlowFadeOutEnd}" Value="0.0"/>
                            </DoubleAnimationUsingKeyFrames>

                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="TombolaFlash"
                                Storyboard.TargetProperty="Opacity">
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeInEnd}"
                                    Value="0.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseIn}"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLockInFlashFadeInStart}"
                                    Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLockInFlashFadeInEnd}"
                                    Value="1.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLockInFlashFadeOutStart}"
                                    Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaLockInFlashFadeOutEnd}"
                                    Value="0.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseIn}" />
                            </DoubleAnimationUsingKeyFrames>
                        </local:UIStoryboard>
                    </local:BeginUIStoryboard>
                </DataTrigger.EnterActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding AnimationState}" Value="{x:Static local:TombolaAnimationStates.Hiding}">
                <DataTrigger.EnterActions>
                    <local:BeginUIStoryboard>
                        <local:UIStoryboard>
                            <local:UIStoryboard.TriggerAnimation>
                                <local:RaiseFzEvent EventName="HideComplete"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_TombolaResetTime}"/>
                            </local:UIStoryboard.TriggerAnimation>

                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TombolaFlash"
                                Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeInStart}"
                                    Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeInEnd}"
                                    Value="1.0"
                                    EasingFunction="{local:LinearEasing}"/>
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeOutStart}"
                                    Value="1.0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </local:UIStoryboard>
                    </local:BeginUIStoryboard>
                </DataTrigger.EnterActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding AnimationState}" Value="{x:Static local:TombolaAnimationStates.Skipping}">
                <DataTrigger.EnterActions>
                    <local:BeginUIStoryboard>
                        <local:UIStoryboard>
                            <local:UIStoryboard.TriggerAnimation>
                                <local:StopAudioTrigger EventName="AudioUITrigger_SuperWheelspin_Spin"
                                    local:TriggerAnimation.KeyTime="0:0:0.0"/>
                                <local:StartAudioTrigger EventName="AudioUITrigger_SuperWheelSpin_Skip"
                                    local:TriggerAnimation.KeyTime="0:0:0.0"/>
                                <local:RaiseFzEvent EventName="SkipComplete"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_TombolaResetTime}"/>
                            </local:UIStoryboard.TriggerAnimation>

                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetName="TombolaSkipFlash"
                                Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeInStart}"
                                    Value="0.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeInEnd}"
                                    Value="1.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
                                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeOutStart}"
                                    Value="1.0"/>
                                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_TombolaResetFlashFadeOutEnd}"
                                    Value="0.0"
                                    EasingFunction="{local:QuadraticEasing EasingMode=EaseIn}" />
                            </DoubleAnimationUsingKeyFrames>
                        </local:UIStoryboard>
                    </local:BeginUIStoryboard>
                </DataTrigger.EnterActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsSkipComplete}" Value="True">
                <DataTrigger.EnterActions>
                    <SeekStoryboard BeginStoryboardName="BeginStoryboard_SuperTombola"
                        Offset="{StaticResource PART_A_TimeSpan_TombolaSkipOffset}"
                        Origin="{x:Static TimeSeekOrigin.BeginTime}"/>
                </DataTrigger.EnterActions>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_Control_SuperTombolaPanelContents"
        TargetType="{x:Type Control}">
        <Setter Property="Width" Value="1920"/>
        <Setter Property="Height" Value="540"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="ClipToBounds" Value="True"/>
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_SuperTombolaPanelContents}"/>
    </Style>
            
</ResourceDictionary>
