<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:project="clr-namespace:Project_Interactivity_DragAndDrop"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  xmlns:project1="clr-namespace:Project_Interactivity_DragAndDrop"
  xmlns:project2="clr-namespace:Project_Interactivity_DragAndDrop"
  xmlns:project3="clr-namespace:Project_Interactivity_DragAndDrop"
  mc:Ignorable="d">
  <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Resources/Button_Resources.xaml"/>
    <ResourceDictionary Source="Resources/Icon_Resources.xaml"/>
    <ResourceDictionary Source="Resources/ListBox_Resources.xaml"/>
  </ResourceDictionary.MergedDictionaries>
  <ControlTemplate x:Key="ListBox_Menu_Template" TargetType="ListBox">
    <Grid>
      <ItemsPresenter/>
    </Grid>
  </ControlTemplate>
  <ItemsPanelTemplate x:Key="ListBox_ItemsPanel_Menu_Template">
    <UniformGrid Columns="4"/>
  </ItemsPanelTemplate>
  <ItemsPanelTemplate x:Key="ListBox_ItemsPanel_Order_Template">
    <UniformGrid Columns="1" Rows="4"/>
  </ItemsPanelTemplate>
  <ItemsPanelTemplate x:Key="ListBox_ItemsPanel_Utilities_Template">
    <Grid/>
  </ItemsPanelTemplate>
  <Style x:Key="ListBox_Item_Container_Menu_Style" TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
    <Setter Property="Template" Value="{DynamicResource ListBox_Item_Container_Menu_Template}"/>
    <Setter Property="noesis:DragDrop.Role" Value="DragOnly"/>
    <Setter Property="noesis:DragDrop.Transfer" Value="Copy"/>
  </Style>
  <ControlTemplate x:Key="ListBox_Item_Container_Menu_Template" TargetType="ListBoxItem">
    <Grid x:Name="Master_Grid" Margin="16,16,16,16" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <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="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleY)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <Border x:Name="Frame_Border" BorderBrush="#FFFFA500" BorderThickness="4,4,4,4" CornerRadius="64,64,32,32">
        <Border.Background>
          <SolidColorBrush Color="#FFFFA500" Opacity="0.25"/>
        </Border.Background>
      </Border>
      <Grid x:Name="InnerContent_Grid">
        <Grid.RowDefinitions>
          <RowDefinition Height="1*"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ContentPresenter/>
        <Grid x:Name="ItemLabel_Grid" Margin="4,0,4,4" Grid.Row="1" VerticalAlignment="Bottom">
          <Border x:Name="LabelBacker_Border" Background="#FFFFA500" CornerRadius="0,0,24,24"/>
          <TextBlock Text="{Binding Path=Name}" Margin="16,6,16,4" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="#FF800000" FontFamily="Assets/Typography/#Agbalumo" FontSize="20" TextAlignment="Center" TextWrapping="Wrap" LineHeight="20" LineStackingStrategy="BlockLineHeight"/>
        </Grid>
      </Grid>
    </Grid>
  </ControlTemplate>
  <Style x:Key="ListBox_Item_Container_Order_Style" TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
    <Setter Property="Template" Value="{DynamicResource ListBox_Item_Container_Order_Template}"/>
    <Setter Property="noesis:DragDrop.Role" Value="DragAndDrop"/>
    <Setter Property="noesis:DragDrop.Transfer" Value="Move"/>
  </Style>
  <ControlTemplate x:Key="ListBox_Item_Container_Order_Template" TargetType="ListBoxItem">
    <Grid x:Name="Master_Grid" Margin="16,16,16,16" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <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="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleY)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <Border x:Name="Frame_Border" BorderBrush="#FFFAEBD7" BorderThickness="4,4,4,4" CornerRadius="64,64,32,32">
        <Border.Background>
          <SolidColorBrush Opacity="0.25" Color="#FFFAEBD7"/>
        </Border.Background>
      </Border>
      <Grid x:Name="InnerContent_Grid">
        <Grid.RowDefinitions>
          <RowDefinition Height="1*"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ContentPresenter/>
        <Grid x:Name="ItemLabel_Grid" Margin="4,0,4,4" Grid.Row="1" VerticalAlignment="Bottom">
          <Border x:Name="LabelBacker_Border" Background="#FFFAEBD7" CornerRadius="0,0,24,24"/>
          <TextBlock Text="{Binding Path=Type}" Margin="16,6,16,4" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="#FF800000" FontFamily="Assets/Typography/#Agbalumo" FontSize="20" TextAlignment="Center" TextWrapping="Wrap" LineHeight="20" LineStackingStrategy="BlockLineHeight"/>
        </Grid>
      </Grid>
    </Grid>
  </ControlTemplate>
  <Style x:Key="ListBox_Item_Container_Depth_Menu_Style" TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
    <Setter Property="Template" Value="{DynamicResource ListBox_Item_Container_Depth_Menu_Template}"/>
    <Setter Property="noesis:DragDrop.Role" Value="DragOnly"/>
    <Setter Property="noesis:DragDrop.Transfer" Value="Move"/>
  </Style>
  <ControlTemplate x:Key="ListBox_Item_Container_Depth_Menu_Template" TargetType="ListBoxItem">
    <Grid x:Name="Master_Grid" Margin="16,16,16,16" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <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="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleY)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <Border x:Name="Frame_Border" BorderBrush="#FFFFA500" BorderThickness="4,4,4,4" CornerRadius="64,64,32,32">
        <Border.Background>
          <SolidColorBrush Color="#FFFFA500" Opacity="0.25"/>
        </Border.Background>
      </Border>
    </Grid>
  </ControlTemplate>
  <DataTemplate x:Key="ListBox_Item_Depth_Menu_Template" DataType="project:FastFoodItem">
    <Grid x:Name="Master_Grid"/>
  </DataTemplate>
  <DataTemplate x:Key="ListBox_Item_Menu_Template" DataType="project2:FastFoodItem">
    <Grid x:Name="Master_Grid">
      <Grid x:Name="ItemIcon_Grid" Margin="16,24,16,16">
        <Border x:Name="ItemIcon_Border">
          <Border.Background>
            <ImageBrush ImageSource="{Binding Path=Icon}" Stretch="Uniform"/>
          </Border.Background>
        </Border>
      </Grid>
    </Grid>
  </DataTemplate>
  <DataTemplate x:Key="ContentControl_Content_Bin_Template" DataType="project3:FastFoodItem">
    <Grid x:Name="Master_Grid" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <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="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <b:Interaction.Triggers>
        <b:EventTrigger x:Name="OnMouseEnter_Hover" SourceName="Master_Grid" EventName="MouseEnter">
          <b:GoToStateAction StateName="MouseOver"/>
        </b:EventTrigger>
        <b:EventTrigger x:Name="OnMouseLeave_UnHover" SourceName="Master_Grid" EventName="MouseLeave">
          <b:GoToStateAction StateName="Normal"/>
        </b:EventTrigger>
      </b:Interaction.Triggers>
      <Border x:Name="Frame_Border" BorderBrush="#FF8B0000" BorderThickness="4,4,4,4" CornerRadius="64,64,32,32">
        <Border.Background>
          <SolidColorBrush Opacity="0.25" Color="#FF000000"/>
        </Border.Background>
      </Border>
      <Grid x:Name="InnerContent_Grid">
        <Grid.RowDefinitions>
          <RowDefinition Height="1*"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ContentControl x:Name="CrossIcon_ContentControl" Grid.RowSpan="2" ContentTemplate="{DynamicResource ContentControl_Content_CrossIcon_Template}">
          <ContentControl.Foreground>
            <SolidColorBrush Color="#FFFAEBD7" Opacity="0.25"/>
          </ContentControl.Foreground>
          <ContentControl.Effect>
            <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
          </ContentControl.Effect>
        </ContentControl>
        <Grid x:Name="ItemLabel_Grid" Margin="4,0,4,4" Grid.Row="1" VerticalAlignment="Bottom">
          <Border x:Name="LabelBacker_Border" Background="#FF8B0000" CornerRadius="0,0,24,24"/>
          <TextBlock Text="Drop to remove from order" Margin="16,8,16,4" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="#FFFAEBD7" FontFamily="Assets/Typography/#Agbalumo" FontSize="24" TextAlignment="Center" TextWrapping="Wrap" LineHeight="24" LineStackingStrategy="BlockLineHeight"/>
        </Grid>
      </Grid>
    </Grid>
  </DataTemplate>
  <DataTemplate x:Key="ContentControl_Content_Bin_Depth_Template" DataType="project3:FastFoodItem">
    <Grid x:Name="Master_Grid" Cursor="Hand">
      <Grid.Transform3D>
        <noesis:CompositeTransform3D/>
      </Grid.Transform3D>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates001">
          <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="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.TranslateZ)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="8"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleX)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
              <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Master_Grid" Storyboard.TargetProperty="(UIElement.Transform3D).(NoesisGUIExtensions.CompositeTransform3D.ScaleY)">
                <LinearDoubleKeyFrame KeyTime="00:00:00" Value="1.025"/>
              </DoubleAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled"/>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.Effect>
        <DropShadowEffect BlurRadius="16" Direction="-90" ShadowDepth="8" Opacity="0.25"/>
      </Grid.Effect>
      <Border x:Name="Frame_Border" BorderBrush="#FFFFA500" BorderThickness="4,4,4,4" CornerRadius="64,64,32,32">
        <Border.Background>
          <SolidColorBrush Opacity="0.25" Color="#FFFFA500"/>
        </Border.Background>
        <ContentControl x:Name="CrossIcon_ContentControl" ContentTemplate="{DynamicResource ContentControl_Content_CrossIcon_Template}">
          <ContentControl.Foreground>
            <SolidColorBrush Color="#FFFAEBD7" Opacity="0.5"/>
          </ContentControl.Foreground>
        </ContentControl>
      </Border>
    </Grid>
  </DataTemplate>
  <DataTemplate x:Key="ContentControl_Content_CrossIcon_Template">
    <Grid x:Name="Master_Grid">
      <Path Data="F1M417.91,337.67l-128.38,-125.17 128.38,-125.17c20.09,-19.59 20.5,-51.87 0.91,-71.97C409.33,5.63 396.62,0.18 383.03,0c-13.58,-0.15 -26.44,4.96 -36.17,14.45l-130.22,126.97L86.42,14.45C76.69,4.96 63.82,-0.16 50.25,0c-13.59,0.17 -26.3,5.63 -35.79,15.36 -19.59,20.09 -19.18,52.37 0.91,71.97l128.38,125.17L15.36,337.67C5.63,347.16 0.18,359.87 0,373.47c-0.17,13.59 4.96,26.44 14.45,36.17 9.66,9.91 22.6,15.36 36.44,15.36s25.96,-5.13 35.52,-14.45l130.22,-126.97 130.22,126.97c9.56,9.32 22.18,14.45 35.52,14.45s26.78,-5.46 36.44,-15.36c19.59,-20.09 19.18,-52.37 -0.91,-71.97z" Stretch="Uniform" Margin="128,128,128,128" Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}"/>
    </Grid>
  </DataTemplate>
</ResourceDictionary>