<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_Player_Action_Template" TargetType="CheckBox">
    <Grid x:Name="Master_Grid" Cursor="Hand">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualStateGroup.Transitions>
            <VisualTransition GeneratedDuration="00:00:00.2000000"/>
          </VisualStateGroup.Transitions>
          <VisualState x:Name="Normal"/>
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <ColorAnimationUsingKeyFrames Storyboard.TargetName="Frame_Border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                <LinearColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource Key_Brt}"/>
              </ColorAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content_Grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.1"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Cross_Path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="45"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Cross_Grid" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Check_Grid" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Pressed"/>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualStateGroup.Transitions>
            <VisualTransition GeneratedDuration="00:00:00.2000000"/>
            <VisualTransition From="Unchecked" GeneratedDuration="0" To="Checked">
              <Storyboard>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Plus_Path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                  <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                  <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.200"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Plus_Path" Storyboard.TargetProperty="(UIElement.Opacity)">
                  <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.10"/>
                  <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.200"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Check_Path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                  <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
                  <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.10"/>
                  <LinearDoubleKeyFrame Value="1.2" KeyTime="0:0:0.200"/>
                  <LinearDoubleKeyFrame Value="1.1" KeyTime="0:0:0.300"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Check_Path" Storyboard.TargetProperty="(UIElement.Opacity)">
                  <LinearDoubleKeyFrame KeyTime="0:0:0"/>
                  <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.10"/>
                  <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.200"/>
                </DoubleAnimationUsingKeyFrames>
              </Storyboard>
            </VisualTransition>
          </VisualStateGroup.Transitions>
          <VisualState x:Name="Unchecked">
            <Storyboard/>
          </VisualState>
          <VisualState x:Name="Checked">
            <Storyboard>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Check_Path" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Plus_Path" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
              </DoubleAnimationUsingKeyFrames>
              <ColorAnimationUsingKeyFrames Storyboard.TargetName="Bookend_Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
                <LinearColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource Accent}"/>
              </ColorAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Cross_Path" Storyboard.TargetProperty="(UIElement.Opacity)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Indeterminate">
            <Storyboard>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Icon_Plus_Path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="45"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border x:Name="HitBox_Border">
        <Border.Background>
          <SolidColorBrush Color="{DynamicResource Color_Transparent}"/>
        </Border.Background>
      </Border>
      <StackPanel x:Name="ButtonStack_HorizontalStack" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
        <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}}">
          <Grid.Background>
            <SolidColorBrush Color="#FF000000"/>
          </Grid.Background>
          <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" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Grid.RenderTransform>
                  <TransformGroup>
                    <ScaleTransform ScaleY="{Binding Path=ScaleX, RelativeSource={RelativeSource Self}}"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                  </TransformGroup>
                </Grid.RenderTransform>
                <TextBlock x:Name="IconSizer_TextBlock" Text="X" Visibility="Hidden" FontSize="{DynamicResource TextSize_24}" TextAlignment="Center" TextWrapping="Wrap"/>
                <Path x:Name="Icon_Plus_Path" RenderTransformOrigin="0.5,0.5" 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.RenderTransform>
                    <TransformGroup>
                      <ScaleTransform ScaleY="{Binding Path=ScaleX, RelativeSource={RelativeSource Self}}"/>
                      <SkewTransform/>
                      <RotateTransform/>
                      <TranslateTransform/>
                    </TransformGroup>
                  </Path.RenderTransform>
                </Path>
                <Grid x:Name="Icon_Cross_Grid" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0">
                  <Path x:Name="Icon_Cross_Path" RenderTransformOrigin="0.5,0.5" 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}" Opacity="0">
                    <Path.Fill>
                      <SolidColorBrush Color="{DynamicResource Light}"/>
                    </Path.Fill>
                    <Path.RenderTransform>
                      <TransformGroup>
                        <ScaleTransform ScaleY="{Binding Path=ScaleX, RelativeSource={RelativeSource Self}}"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                      </TransformGroup>
                    </Path.RenderTransform>
                  </Path>
                </Grid>
                <Grid x:Name="Icon_Check_Grid" HorizontalAlignment="Center" VerticalAlignment="Center">
                  <Path x:Name="Icon_Check_Path" RenderTransformOrigin="0.5,0.5" Data="M167.84,113.25 121.98,159.11C118.44,162.65 112.69,162.65 109.15,159.11L89.16,139.12C85.62,135.58 85.62,129.83 89.16,126.29L89.16,126.29C92.7,122.75 98.45,122.75 101.99,126.29L115.57,139.87 155.01,100.43C158.55,96.89 164.3,96.89 167.84,100.43L167.84,100.43C171.38,103.97 171.38,109.72 167.84,113.26z" Stretch="Uniform" Width="{Binding Path=ActualWidth, ElementName=IconSizer_TextBlock}" Opacity="0">
                    <Path.Fill>
                      <SolidColorBrush Color="{DynamicResource Accent}"/>
                    </Path.Fill>
                    <Path.RenderTransform>
                      <TransformGroup>
                        <ScaleTransform ScaleY="{Binding Path=ScaleX, RelativeSource={RelativeSource Self}}" ScaleX="1.1"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                      </TransformGroup>
                    </Path.RenderTransform>
                  </Path>
                </Grid>
              </Grid>
            </Border>
          </Border>
        </Grid>
      </StackPanel>
    </Grid>
  </ControlTemplate>
</ResourceDictionary>