<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions">
  <ControlTemplate x:Key="Button_PlaceOrder_Template" TargetType="Button">
    <Grid x:Name="Master_Grid" Margin="-16,0,0,0" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <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>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="4"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="4"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.015"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.015"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Pressed"/>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border x:Name="Frame_Border" Padding="24,24,24,24" Background="#FFFFA500" CornerRadius="32,32,32,32">
        <TextBlock Text="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" Padding="0,-8,0,0" Foreground="#FF8B0000" FontFamily="Assets/Typography/#Agbalumo" FontSize="48" TextWrapping="Wrap"/>
      </Border>
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="Button_PlaceOrder_Depth_Template" TargetType="Button">
    <Grid x:Name="Master_Grid" Margin="-16,0,0,0">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <Border x:Name="Back_Border" Opacity="0.25" BorderBrush="#FFFFA500" BorderThickness="4,4,4,4" CornerRadius="32,32,32,32">
        <Border.Background>
          <SolidColorBrush Color="#FFFFA500" Opacity="0.25"/>
        </Border.Background>
      </Border>
    </Grid>
  </ControlTemplate>
</ResourceDictionary>