<Page x:Class="ForzaUI.Resources.Anthem.InlineMarkupTest"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:local="clr-namespace:ForzaUI"
      mc:Ignorable="d" 
      Style="{StaticResource A_Style_Page_Generic}">

    <Page.Resources>
        <ControlTemplate x:Key="A_ControlTemplate_InlineMarkupTest_Button" TargetType="{x:Type Control}">
            <Grid>
                <local:ControllerButtonControl Height="41"
                                               UseLargeIcon="True"
                                               Margin="0,0,0,0"
                                               Style="{StaticResource A_Style_ControllerButtonControl_ActivationButton}" />
            </Grid>
        </ControlTemplate>

        <Style x:Key="A_Style_InlineMarkupTest_Button" TargetType="{x:Type Control}">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_InlineMarkupTest_Button}"/>
            <Setter Property="Height" Value="21"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_Button_Bigger" TargetType="{x:Type Control}" BasedOn="{StaticResource A_Style_InlineMarkupTest_Button}">
            <Setter Property="Height" Value="61"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_Button_Biggest" TargetType="{x:Type Control}" BasedOn="{StaticResource A_Style_InlineMarkupTest_Button}">
            <Setter Property="Height" Value="101"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_0" TargetType="{x:Type local:FZRun}">
            <Setter Property="Color" Value="Blue"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="FontSize" Value="50"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_1" TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily" Value="Horizon_B"/>
            <Setter Property="FontSize" Value="35"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_2" TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily" Value="Horizon_C"/>
            <Setter Property="FontSize" Value="25"/>
        </Style>

        <Style x:Key="A_Style_InlineMarkupTest_3" TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily" Value="Horizon_D"/>
            <Setter Property="FontSize" Value="16"/>
        </Style>
    </Page.Resources>
    
    <Grid>
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Background="White">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <local:FZTextBlock FontSize="75"
                                   FontFamily="Horizon_C"
                                   Color="Magenta"
                                   HorizontalAlignment="Center"
                                   local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]"
                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
                <TextBlock FontSize="75"
                           FontFamily="Horizon_C"
                           Foreground="Magenta"
                           Background="LightGray"
                           HorizontalAlignment="Center"
                           local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]"
                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <local:FZTextBlock FontSize="75"
                                   FontFamily="Horizon_C"
                                   Color="Magenta"
                                   local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button]&#x0a;Text[0:Text][1:Text][2:Text][3:Text][Button_Bigger]&#x0a;Text[0:Text][1:Text][2:Text][3:Text][Button_Biggest]"
                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
                <TextBlock FontSize="75"
                           FontFamily="Horizon_C"
                           Foreground="Magenta"
                           Background="LightGray"
                           local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button]&#x0a;Text[0:Text][1:Text][2:Text][3:Text][Button_Bigger]&#x0a;Text[0:Text][1:Text][2:Text][3:Text][Button_Biggest]"
                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <local:FZTextBlock FontSize="75"
                                   FontFamily="Horizon_C"
                                   Color="Magenta"
                                   HorizontalAlignment="Center"
                                   MaxWidth="450"
                                   TextWrapping="Wrap"
                                   TextAlignment="Left"
                                   TextTrimming="None"
                                   Stretch="None" 
                                   local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]"
                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
                <TextBlock FontSize="75"
                           FontFamily="Horizon_C"
                           Foreground="Magenta"
                           Background="LightGray"
                           HorizontalAlignment="Center"
                           MaxWidth="450"
                           TextWrapping="Wrap"
                           TextAlignment="Left"
                           TextTrimming="None"
                           local:TextBlockInlineMarkup.Markup="Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]Text[0:Text][1:Text][2:Text][3:Text][Button][Button_Bigger][Button_Biggest]"
                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_InlineMarkupTest_"/>
            </StackPanel>
            
        </StackPanel>
    </Grid>
</Page>
