<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">
    
    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_UserName" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_LiveText}" />
        <Setter Property="FontSize" Value="79" />
        <Setter Property="Margin" Value="0,1,0,15" />
        <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_HorizonA}">
        <Setter Property="Color" Value="#FFFFFF" />
        <Setter Property="FontSize" Value="38" />
        <Setter Property="Margin" Value="0,0,0,15" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_Title" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color" Value="#FFFFFF" />
        <Setter Property="FontSize" Value="54" />
        <Setter Property="Margin" Value="0,0,0,0" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="LineHeight" Value="50.0" />
        <Setter Property="LineStackingStrategy" Value="BlockLineHeight" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_Description" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
        <Setter Property="Color" Value="#FFFFFF" />
        <Setter Property="FontSize" Value="48" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="Margin" Value="0,0,0,0" />
        <Setter Property="LineHeight" Value="49"/>
        <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BucketListFlyer_Restrictions" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_LiveText}" />
        <Setter Property="FontSize" Value="32" />
        <Setter Property="Margin" Value="17,13" />
    </Style>

    <System:Double x:Key="A_Double_BucketListFlyer_LineThickness">2</System:Double>

    <Style x:Key="A_Style_FZMaterial_Restrictions_Line" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_LiveText}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Restrictions_Line_Horizontal" TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_Restrictions_Line}">
        <Setter Property="Height" Value="{StaticResource A_Double_BucketListFlyer_LineThickness}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_Restrictions_Line_Vertical" TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_Restrictions_Line}">
        <Setter Property="Width" Value="{StaticResource A_Double_BucketListFlyer_LineThickness}"/>
    </Style>

    <Style x:Key="A_Style_Control_BucketListFlyer" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid>
                        <local:FZMaterial ImageSource="{Binding FlyerImagePath}"
                                Stretch="Fill">
                            <local:FZMaterial.ImageTransform>
                                <TransformGroup>
                                    <TranslateTransform X="-0.004" Y="-0.091"/>
                                    <ScaleTransform ScaleX="1.0071" ScaleY="1.492"/>
                                </TransformGroup>
                            </local:FZMaterial.ImageTransform>
                        </local:FZMaterial>
                        <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Anthem/TileBackgrounds/BucketlistBlueprintVignette.png"/>
                        <local:FZMaterial
                            Width="114"
                            Height="114"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Margin="0,0,2,0"
                            Visibility="{Binding IsCommunityChallenge, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                        <Grid Margin="30,30,30,40">
                            <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                                <local:FZTextBlock Text="{Binding UserProfile.FormattedGamertag}" 
                                                    Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_UserName}" />
                                <local:FZTextBlock Text="{local:Loc BucketListBlueprint.IDS_Presents}" 
                                                       Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_Presents}" />
                                <local:FZTextBlock Text="{Binding Title, Converter={StaticResource A_StringToUpper}}"
                                                       Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_Title}" />
                            </StackPanel>
                            <StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
                                <local:FZTextBlock Text="{Binding Description, Converter={StaticResource A_StringToUpper}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_Description}"/>
                                <DockPanel Visibility="{Binding Restrictions, Converter={StaticResource A_StringVisConverter}}"
                                           HorizontalAlignment="Left"
                                           Margin="3,17,0,0">
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Restrictions_Line_Horizontal}" DockPanel.Dock="Top"/>
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Restrictions_Line_Horizontal}" DockPanel.Dock="Bottom"/>
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Restrictions_Line_Vertical}" DockPanel.Dock="Left"/>
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Restrictions_Line_Vertical}" DockPanel.Dock="Right"/>
                                    <Grid>
                                        <local:FZMaterial Color="#40000000"/>
                                        <local:FZTextBlock Text="{Binding Restrictions, Converter={StaticResource A_StringToUpper}}" 
                                                           Style="{StaticResource A_Style_FZTextBlock_BucketListFlyer_Restrictions}"/>
                                    </Grid>
                                </DockPanel>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="668" />
        <Setter Property="Height" Value="670" />
    </Style>

</ResourceDictionary>
