<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions"
  xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d">
  <ControlTemplate x:Key="Button_Back_Button_Template" TargetType="Button">
    <Grid x:Name="Master_Grid">
      <StackPanel x:Name="HintModule_HorizontalStack" Orientation="Horizontal">
        <Grid x:Name="IconButton_Grid" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" Margin="0,0,8,0">
          <Border x:Name="IconButton_Backer_Border" Background="{DynamicResource Dark_50}" CornerRadius="24,0,0,0"/>
          <TextBlock x:Name="IconButton_Sizer_TextBlock" Text="X" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden" FontFamily="{DynamicResource Font_Primary}" FontSize="{DynamicResource TextSize_48}" TextWrapping="Wrap"/>
          <Path x:Name="Arrow_Path" RenderTransformOrigin="0.5,0.5" Data="M0,64.9414 104.63,1.18141C109.96,-2.06859 116.79,1.77141 116.79,8.0114L116.79,135.521C116.79,141.761 109.96,145.601 104.63,142.351L0,78.5914C-5.12,75.4714 -5.12,68.0414 0,64.9314z" Stretch="Uniform">
            <Path.Fill>
              <SolidColorBrush Color="{DynamicResource Light}"/>
            </Path.Fill>
            <Path.Width>
              <Binding Path="ActualWidth" ElementName="IconButton_Sizer_TextBlock">
                <Binding.Converter>
                  <noesis:MathConverter Expression="{}{0}-8"/>
                </Binding.Converter>
              </Binding>
            </Path.Width>
            <Path.RenderTransform>
              <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform X="-4"/>
              </TransformGroup>
            </Path.RenderTransform>
          </Path>
        </Grid>
        <Grid x:Name="HintButton_Grid">
          <Border x:Name="HintButton_Backer_Border" Background="{DynamicResource Dark_50}"/>
          <StackPanel x:Name="HintButtonStack_StackPanel" Orientation="Horizontal" Margin="16,0,16,0" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Button Content="esc" Margin="0,0,16,0" Template="{DynamicResource Button_KeyHint_Buttonl_Template}"/>
            <TextBlock x:Name="Hint_TextBlock" Text="MAIN MENU" VerticalAlignment="Center" FontFamily="{DynamicResource Font_Primary}" FontSize="{DynamicResource TextSize_40}" TextWrapping="Wrap">
              <TextBlock.Foreground>
                <SolidColorBrush Color="{DynamicResource Light}"/>
              </TextBlock.Foreground>
            </TextBlock>
          </StackPanel>
        </Grid>
      </StackPanel>
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="True">
        <Setter TargetName="Master_Grid" Property="Background" Value="#FF778899"/>
      </Trigger>
      <Trigger Property="IsPressed" Value="True">
        <Setter TargetName="Master_Grid" Property="Background" Value="#FF708090"/>
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>
  <ControlTemplate x:Key="Button_KeyHint_Buttonl_Template" TargetType="Button">
    <Grid x:Name="Master_Grid">
      <Border x:Name="ButtonHint_Key_Border" HorizontalAlignment="Center" VerticalAlignment="Center" BorderBrush="{DynamicResource Light_25}" BorderThickness="2" CornerRadius="8,8,8,8">
        <TextBlock x:Name="ButtonHint_Key_TextBlock" Text="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" Margin="16,-6,16,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{DynamicResource Font_Primary}" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
          <TextBlock.Foreground>
            <SolidColorBrush Color="{DynamicResource Light}"/>
          </TextBlock.Foreground>
        </TextBlock>
      </Border>
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="Button_AddCurrency_Button_Template" TargetType="Button">
    <Grid x:Name="Master_Grid">
      <StackPanel x:Name="ButtonStack_HorizontalStack" Orientation="Horizontal">
        <Border x:Name="Bookend_Border" Width="8" Margin="0,0,8,0">
          <Border.Background>
            <SolidColorBrush Color="{DynamicResource Accent}"/>
          </Border.Background>
        </Border>
        <Grid x:Name="PlusZone_Grid" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}">
          <Border x:Name="Backer_Border" Background="{DynamicResource Dark_50}">
            <Grid x:Name="Content_Grid" HorizontalAlignment="Center" VerticalAlignment="Center">
              <TextBlock x:Name="IconSizer_TextBlock" Text="X" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden" FontSize="{DynamicResource TextSize_24}" TextAlignment="Center" TextWrapping="Wrap"/>
              <Path x:Name="AddIcon_Path" Data="F1M202.71,106.61h-49.68c-2.01,0 -3.64,-1.63 -3.64,-3.64v-49.68c0,-4.03 -3.26,-7.29 -7.29,-7.29h-28.2c-4.03,0 -7.29,3.26 -7.29,7.29v49.68c0,2.01 -1.63,3.64 -3.64,3.64h-49.68c-4.03,0 -7.29,3.26 -7.29,7.29v28.2c0,4.03 3.26,7.29 7.29,7.29h49.68c2.01,0 3.64,1.63 3.64,3.64v49.68c0,4.03 3.26,7.29 7.29,7.29h28.2c4.03,0 7.29,-3.26 7.29,-7.29v-49.68c0,-2.01 1.63,-3.64 3.64,-3.64h49.68c4.03,0 7.29,-3.26 7.29,-7.29v-28.2c0,-4.03 -3.26,-7.29 -7.29,-7.29z" Stretch="UniformToFill" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}" Height="{Binding ActualHeight, ElementName=IconSizer_TextBlock}">
                <Path.Fill>
                  <SolidColorBrush Color="{DynamicResource Accent}"/>
                </Path.Fill>
              </Path>
            </Grid>
          </Border>
        </Grid>
      </StackPanel>
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="True">
        <Setter TargetName="Master_Grid" Property="Background" Value="#FF778899"/>
      </Trigger>
      <Trigger Property="IsPressed" Value="True">
        <Setter TargetName="Master_Grid" Property="Background" Value="#FF708090"/>
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>
  <ControlTemplate x:Key="Button_LaunchMission_Button_Template" TargetType="Button">
    <ControlTemplate.Resources>
      <ResourceDictionary>
        <Storyboard x:Key="AmbientAnimation" RepeatBehavior="Forever">
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Left_Right">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.300"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.800"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:2.10"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Left_Middle">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.300"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.600"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.500"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:1.800"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Left_Left">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.600"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.900"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.200"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:1.500"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Right_Left">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.300"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.800"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:2.10"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Right_Middle">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.300"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.600"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.500"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:1.800"/>
          </DoubleAnimationUsingKeyFrames>
          <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Chevron_Right_Right">
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.600"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.900"/>
            <LinearDoubleKeyFrame Value="1" KeyTime="0:0:1.200"/>
            <LinearDoubleKeyFrame Value="0" KeyTime="0:0:1.500"/>
          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
      </ResourceDictionary>
    </ControlTemplate.Resources>
    <Grid x:Name="Master_Grid" Cursor="Hand">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualStateGroup.Transitions>
            <VisualTransition GeneratedDuration="00:00:00.2500000"/>
            <VisualTransition GeneratedDuration="00:00:00.2500000" To="MouseOver">
              <Storyboard>
                <Int32AnimationUsingKeyFrames Storyboard.TargetName="Label_TextBlock" Storyboard.TargetProperty="(TextElement.CharacterSpacing)">
                  <LinearInt32KeyFrame KeyTime="00:00:00.2500000" Value="32"/>
                </Int32AnimationUsingKeyFrames>
              </Storyboard>
            </VisualTransition>
          </VisualStateGroup.Transitions>
          <VisualState x:Name="Normal">
            <Storyboard RepeatBehavior="Forever"/>
          </VisualState>
          <VisualState x:Name="MouseOver">
            <Storyboard RepeatBehavior="Forever">
              <ColorAnimationUsingKeyFrames Storyboard.TargetName="Backer_Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
                <LinearColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource Key_Brt}"/>
              </ColorAnimationUsingKeyFrames>
              <ColorAnimationUsingKeyFrames Storyboard.TargetName="Bookend_Left_Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
                <LinearColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource Key_Brt}"/>
              </ColorAnimationUsingKeyFrames>
              <ColorAnimationUsingKeyFrames Storyboard.TargetName="Bookend_Right_Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
                <LinearColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource Key_Brt}"/>
              </ColorAnimationUsingKeyFrames>
              <Int32AnimationUsingKeyFrames Storyboard.TargetName="Label_TextBlock" Storyboard.TargetProperty="(TextElement.CharacterSpacing)">
                <LinearInt32KeyFrame KeyTime="0:0:0" Value="32"/>
              </Int32AnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Right" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Middle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Left" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Left" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Middle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Right" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="3"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Right" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Middle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Left_Left" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Right" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Middle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevron_Right_Left" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevrons_Left_HorizontalStack" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Chevrons_Right_HorizontalStack" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Pressed"/>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused">
            <Storyboard/>
          </VisualState>
          <VisualState x:Name="Focused"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Background>
        <SolidColorBrush Color="{DynamicResource Color_Transparent}"/>
      </Grid.Background>
      <b:Interaction.Triggers>
        <b:EventTrigger x:Name="OnLoad_PlayChevronAnimation">
          <b:ControlStoryboardAction Storyboard="{DynamicResource AmbientAnimation}"/>
        </b:EventTrigger>
      </b:Interaction.Triggers>
      <Grid x:Name="Layout_Grid">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition/>
          <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Border x:Name="Bookend_Left_Border" Width="4" Margin="0,0,4,0">
          <Border.Background>
            <SolidColorBrush Color="{DynamicResource Key_Med}"/>
          </Border.Background>
        </Border>
        <Border x:Name="Frame_Border" Grid.Column="1" Padding="4,4,4,4" BorderThickness="4,4,4,4">
          <Border.BorderBrush>
            <SolidColorBrush Color="{DynamicResource Key_Med}"/>
          </Border.BorderBrush>
          <Border x:Name="Backer_Border">
            <Border.Background>
              <SolidColorBrush Color="{DynamicResource Key_Med}"/>
            </Border.Background>
            <StackPanel x:Name="LabelContent_HorizontalStack" Orientation="Horizontal" HorizontalAlignment="Center">
              <StackPanel x:Name="Chevrons_Left_HorizontalStack" Orientation="Horizontal" Opacity="0.33">
                <TextBlock x:Name="Chevron_Left_Left" RenderTransformOrigin="0.5,0.5" Text="&lt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
                <TextBlock x:Name="Chevron_Left_Middle" RenderTransformOrigin="0.5,0.5" Text="&lt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
                <TextBlock x:Name="Chevron_Left_Right" RenderTransformOrigin="0.5,0.5" Text="&lt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
              </StackPanel>
              <TextBlock x:Name="Label_TextBlock" Text="LAUNCH TRIAL" Margin="8,0,8,0" FontFamily="{DynamicResource Font_Primary}" FontSize="{DynamicResource TextSize_32}" TextAlignment="Center" TextWrapping="Wrap">
                <TextBlock.Foreground>
                  <SolidColorBrush Color="{DynamicResource Light}"/>
                </TextBlock.Foreground>
              </TextBlock>
              <StackPanel x:Name="Chevrons_Right_HorizontalStack" Orientation="Horizontal" Opacity="0.33">
                <TextBlock x:Name="Chevron_Right_Left" RenderTransformOrigin="0.5,0.5" Text="&gt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
                <TextBlock x:Name="Chevron_Right_Middle" RenderTransformOrigin="0.5,0.5" Text="&gt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
                <TextBlock x:Name="Chevron_Right_Right" RenderTransformOrigin="0.5,0.5" Text="&gt;" Margin="0,0,8,0" Opacity="0" FontFamily="Berlin Sans FB" FontSize="{DynamicResource TextSize_40}" TextAlignment="Center" TextWrapping="Wrap">
                  <TextBlock.Foreground>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </TextBlock.Foreground>
                  <TextBlock.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform Y="-2"/>
                    </TransformGroup>
                  </TextBlock.RenderTransform>
                </TextBlock>
              </StackPanel>
            </StackPanel>
          </Border>
        </Border>
        <Border x:Name="Bookend_Right_Border" Width="4" Margin="4,0,0,0" Grid.Column="2">
          <Border.Background>
            <SolidColorBrush Color="{DynamicResource Key_Med}"/>
          </Border.Background>
        </Border>
      </Grid>
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="CheckBox_PlayerStatus_Template" TargetType="CheckBox">
    <Grid x:Name="Master_Grid" HorizontalAlignment="Center" VerticalAlignment="Center">
      <StackPanel x:Name="ButtonStack_HorizontalStack" Orientation="Horizontal">
        <Border x:Name="Bookend_Border" Width="4" Margin="0,0,4,0">
          <Border.Background>
            <SolidColorBrush Color="{DynamicResource Key_Brt}"/>
          </Border.Background>
        </Border>
        <Grid x:Name="ContentZone_Grid" Width="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self}}">
          <Border x:Name="Frame_Border" Padding="4,4,4,4" BorderThickness="4,4,4,4">
            <Border.BorderBrush>
              <SolidColorBrush Color="{DynamicResource Key_Med}"/>
            </Border.BorderBrush>
            <Border x:Name="Backer_Border">
              <Border.Background>
                <SolidColorBrush Color="{DynamicResource Key_Drk}"/>
              </Border.Background>
              <Grid x:Name="Content_Grid" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock x:Name="IconSizer_TextBlock" Text="X" Visibility="Hidden" FontSize="{DynamicResource TextSize_24}" TextAlignment="Center" TextWrapping="Wrap"/>
                <Path x:Name="Icon_Plus_Path" Data="F1M202.71,106.61h-49.68c-2.01,0 -3.64,-1.63 -3.64,-3.64v-49.68c0,-4.03 -3.26,-7.29 -7.29,-7.29h-28.2c-4.03,0 -7.29,3.26 -7.29,7.29v49.68c0,2.01 -1.63,3.64 -3.64,3.64h-49.68c-4.03,0 -7.29,3.26 -7.29,7.29v28.2c0,4.03 3.26,7.29 7.29,7.29h49.68c2.01,0 3.64,1.63 3.64,3.64v49.68c0,4.03 3.26,7.29 7.29,7.29h28.2c4.03,0 7.29,-3.26 7.29,-7.29v-49.68c0,-2.01 1.63,-3.64 3.64,-3.64h49.68c4.03,0 7.29,-3.26 7.29,-7.29v-28.2c0,-4.03 -3.26,-7.29 -7.29,-7.29z" Stretch="Uniform" Width="{Binding Path=ActualWidth, ElementName=IconSizer_TextBlock}">
                  <Path.Fill>
                    <SolidColorBrush Color="{DynamicResource Light}"/>
                  </Path.Fill>
                </Path>
              </Grid>
            </Border>
          </Border>
        </Grid>
      </StackPanel>
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="CheckBox_Player_Template" TargetType="CheckBox">
    <Grid x:Name="Master_Grid">
      <Grid x:Name="Layout_Grid">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="1*"/>
          <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid x:Name="Avatar_Grid" Margin="0,0,8,0">
          <Border x:Name="Avatar_Backer_Border">
            <Border.Background>
              <SolidColorBrush Color="{DynamicResource Key_Drk}"/>
            </Border.Background>
          </Border>
          <Border x:Name="Avatar_Image_Border" Width="{Binding Path=ActualHeight, ElementName=PlayerName_TextBlock}" Margin="0,-4,0,0">
            <Border.Background>
              <ImageBrush Stretch="UniformToFill" ImageSource="/GAME;component/UI/Assets/AvatarImagery_Bitmap/AvatarImagery_1.png"/>
            </Border.Background>
          </Border>
        </Grid>
        <Grid x:Name="Gamertag_Grid" Margin="0" Column="1">
          <Border x:Name="Gamertag_Backer_Border">
            <Border.Background>
              <SolidColorBrush Color="{DynamicResource Key_Drk}"/>
            </Border.Background>
          </Border>
          <TextBlock x:Name="PlayerName_TextBlock" Text="{Binding}" Margin="8,0,8,0" Foreground="#FFFFE5CC" FontFamily="{DynamicResource Font_Primary}" FontSize="{DynamicResource TextSize_32}"/>
        </Grid>
        <Grid x:Name="ActionButton_Grid" Margin="8,0,8,0" Grid.Column="2">
          <CheckBox x:Name="Status_CheckBox" Template="{DynamicResource CheckBox_PlayerStatus_Template}"/>
        </Grid>
      </Grid>
    </Grid>
  </ControlTemplate>
</ResourceDictionary>