<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:dd="clr-namespace:DragAndDropInteractivity"
                    xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:inventory="clr-namespace:Inventory_DD_Studio"
                    mc:Ignorable="d">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="DragTemplate.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <RadialGradientBrush x:Key="OuterBorder.Brush" GradientOrigin="0.5,0" RadiusY="1.3041167" Center="0.5,0">
        <GradientStop Offset="0.9776466" Color="#FF4D4538"/>
        <GradientStop Offset="0" Color="#FF9E8F5B"/>
    </RadialGradientBrush>
    <RadialGradientBrush x:Key="ItemOuterBorder.Brush" GradientOrigin="0.5,0" RadiusY="1.3041167" RadiusX="1.8403075" Center="0.5,0">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterY="0" CenterX="0.5"/>
                <SkewTransform CenterY="0" CenterX="0.5"/>
                <RotateTransform CenterY="0" CenterX="0.5"/>
                <TranslateTransform/>
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Offset="0.9776466" Color="#FF4D4538"/>
        <GradientStop Offset="0" Color="#FF9E8F5B"/>
    </RadialGradientBrush>
    <RadialGradientBrush x:Key="InnerGradient.Brush" GradientOrigin="0.5,-0.0353628" RadiusY="1.2216504" RadiusX="0.7997942" Center="0.5,-0.0353628">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterY="0.734363" CenterX="0.5"/>
                <SkewTransform CenterY="0.734363" CenterX="0.5"/>
                <RotateTransform CenterY="-0.035362754" CenterX="0.5" Angle="-0.109232254"/>
                <TranslateTransform/>
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Offset="1" Color="#FF12181C"/>
        <GradientStop Offset="0" Color="#FF172A30"/>
    </RadialGradientBrush>
    <SolidColorBrush x:Key="Description.Brush" Color="#FFCFC7BC"/>
    <SolidColorBrush x:Key="Subheader.Brush" Color="#FF00B3CC"/>
    <RadialGradientBrush x:Key="RadialOpacity.Brush">
        <GradientStop Offset="1" Color="#00000000"/>
        <GradientStop Offset="0" Color="#FFFFFFFF"/>
        <GradientStop Offset="0.77300006" Color="#F4A6A6A6"/>
    </RadialGradientBrush>
    <RadialGradientBrush x:Key="BlueEffect.Brush" Center="0.5,1" GradientOrigin="0.5,1">
        <GradientStop Offset="0" Color="#FF0AECEF"/>
        <GradientStop Offset="1" Color="#00091B29"/>
    </RadialGradientBrush>
    <Color x:Key="DeepGreen.Color">#FF0E100F</Color>
    <Color x:Key="PanelBorder.Color">#FF200B48</Color>
    <Color x:Key="PanelBackground.color">#FF202020</Color>
    <RadialGradientBrush x:Key="PanelGradient.Brush" RadiusY="4.1032887">
        <GradientStop Offset="1" Color="#FF151515"/>
        <GradientStop Offset="0" Color="#FF212121"/>
    </RadialGradientBrush>
    <ItemsPanelTemplate x:Key="ItemsPanel.Template">
        <UniformGrid Columns="4" Rows="4"/>
    </ItemsPanelTemplate>
    <DataTemplate x:Key="Item.DataTemplate" DataType="inventory:Item">
        <Grid x:Name="RootGrid" RenderTransformOrigin="0.5,0.5" Width="97" Height="97" Background="#00000000">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="4*"/>
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="VisualStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition From="TargetIncompatible" GeneratedDuration="00:00:00">
                            <Storyboard>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                                    <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0.200"/>
                                </DoubleAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                    <LinearColorKeyFrame Value="#FFFF0073" KeyTime="0:0:0"/>
                                </ColorAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                    <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0:0:0"/>
                                    <DiscreteObjectKeyFrame Value="Hidden" KeyTime="0:0:0.200"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Base">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Hidden}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Hidden}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="FlyCompatible">
                        <Storyboard RepeatBehavior="Forever" AutoReverse="True">
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
                                <SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1" Value="1" KeyTime="0:0:0.400"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="TargetIncompatible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                <LinearColorKeyFrame Value="#FFFF0073" KeyTime="0:0:0"/>
                            </ColorAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
                                <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0.200"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="TargetVStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition From="TargetCompatible" GeneratedDuration="00:00:00">
                            <Storyboard>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                    <EasingDoubleKeyFrame Value="2.2" KeyTime="0:0:0"/>
                                    <EasingDoubleKeyFrame Value="1" KeyTime="0:0:0.200">
                                        <EasingDoubleKeyFrame.EasingFunction>
                                            <QuarticEase EasingMode="EaseOut"/>
                                        </EasingDoubleKeyFrame.EasingFunction>
                                    </EasingDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                    <EasingDoubleKeyFrame Value="2.2" KeyTime="0:0:0"/>
                                    <EasingDoubleKeyFrame Value="1" KeyTime="0:0:0.200">
                                        <EasingDoubleKeyFrame.EasingFunction>
                                            <QuarticEase EasingMode="EaseOut"/>
                                        </EasingDoubleKeyFrame.EasingFunction>
                                    </EasingDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <EasingDoubleKeyFrame Value="0.19" KeyTime="0:0:0"/>
                                    <EasingDoubleKeyFrame KeyTime="0:0:0.200">
                                        <EasingDoubleKeyFrame.EasingFunction>
                                            <CubicEase EasingMode="EaseOut"/>
                                        </EasingDoubleKeyFrame.EasingFunction>
                                    </EasingDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="TargetBase">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorderGreen" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Hidden}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Hidden}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <LinearDoubleKeyFrame Value="1" KeyTime="0:0:0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="TargetCompatible">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectBorderGreen" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <LinearDoubleKeyFrame Value="0" KeyTime="0:0:0"/>
                                <EasingDoubleKeyFrame Value="0.19" KeyTime="0:0:0.300">
                                    <EasingDoubleKeyFrame.EasingFunction>
                                        <CubicEase EasingMode="EaseOut"/>
                                    </EasingDoubleKeyFrame.EasingFunction>
                                </EasingDoubleKeyFrame>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectBorderGreen" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <EasingDoubleKeyFrame Value="2.2" KeyTime="0:0:0.300">
                                    <EasingDoubleKeyFrame.EasingFunction>
                                        <QuarticEase EasingMode="EaseOut"/>
                                    </EasingDoubleKeyFrame.EasingFunction>
                                </EasingDoubleKeyFrame>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <EasingDoubleKeyFrame Value="2.2" KeyTime="0:0:0.300">
                                    <EasingDoubleKeyFrame.EasingFunction>
                                        <QuarticEase EasingMode="EaseOut"/>
                                    </EasingDoubleKeyFrame.EasingFunction>
                                </EasingDoubleKeyFrame>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EffectGradient" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" KeyTime="0:0:0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <b:Interaction.Triggers>
                <b:DataTrigger Binding="{Binding Path=(noesis:DragDrop.IsDropCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:GoToStateAction StateName="TargetBase"/>
                </b:DataTrigger>
                <b:DataTrigger Binding="{Binding Path=(noesis:DragDrop.IsHoverCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:GoToStateAction StateName="Base"/>
                </b:DataTrigger>
                <b:DataTrigger Binding="{Binding Path=(noesis:DragDrop.IsOverlayCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:GoToStateAction StateName="Base"/>
                </b:DataTrigger>
                <b:DataTrigger Value="True" Binding="{Binding Path=(noesis:DragDrop.IsDropCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:Interaction.Behaviors>
                        <b:ConditionBehavior>
                            <b:ConditionalExpression>
                                <b:ComparisonCondition Operator="Equal" LeftOperand="{Binding Path=(noesis:DragDrop.Tag), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}" RightOperand="Slot"/>
                            </b:ConditionalExpression>
                        </b:ConditionBehavior>
                    </b:Interaction.Behaviors>
                    <b:GoToStateAction StateName="TargetCompatible"/>
                </b:DataTrigger>
                <b:DataTrigger Value="False" Binding="{Binding Path=(noesis:DragDrop.IsHoverCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:GoToStateAction StateName="TargetIncompatible"/>
                </b:DataTrigger>
                <b:DataTrigger Value="True" Binding="{Binding Path=(noesis:DragDrop.IsOverlayCompatible), RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}">
                    <b:GoToStateAction StateName="FlyCompatible"/>
                </b:DataTrigger>
            </b:Interaction.Triggers>
            <Border x:Name="EffectGradient" RenderTransformOrigin="0.5,0.5" Margin="0" Grid.RowSpan="2" Visibility="Hidden" CornerRadius="10,10,10,10">
                <Border.Background>
                    <RadialGradientBrush RadiusY="0.33968702" RadiusX="0.34483078">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5" Angle="-6.534388E-06"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF00FF51" Offset="0"/>
                        <GradientStop Color="#0000FF51" Offset="1"/>
                    </RadialGradientBrush>
                </Border.Background>
                <Border.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Border.RenderTransform>
            </Border>
            <Border x:Name="BackgroundBorder" Margin="0" Grid.RowSpan="2" Background="#FF000000" BorderBrush="{DynamicResource ItemOuterBorder.Brush}" BorderThickness="2" CornerRadius="10,10,10,10"/>
            <Border x:Name="ItemBorder_Empty" Grid.RowSpan="2" CornerRadius="10,10,10,10">
                <Border.Background>
                    <RadialGradientBrush RadiusY="0.90866494" RadiusX="1.1547031">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5" Angle="-1.9513743E-06"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#FF4B4B4B" Offset="1"/>
                    </RadialGradientBrush>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="ItemBorder_Icon" Grid.RowSpan="2" CornerRadius="10,10,10,10">
                <Border.Background>
                    <ImageBrush ImageSource="{Binding Path=Icon}" Stretch="Uniform"/>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="Head" Width="30" Height="30" Margin="0,0,4,4" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Hidden">
                <Border.Background>
                    <ImageBrush ImageSource="images/categoryIcons/barbute.png" Stretch="Uniform"/>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="Armor" Width="30" Height="30" Margin="0,0,4,4" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Hidden">
                <Border.Background>
                    <ImageBrush ImageSource="images/categoryIcons/armor.png" Stretch="Uniform"/>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="Weapon" Width="30" Height="30" Margin="0,0,4,4" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Hidden">
                <Border.Background>
                    <ImageBrush ImageSource="images/categoryIcons/stiletto.png" Stretch="Uniform"/>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="Feet" Width="30" Height="30" Margin="0,0,4,4" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Hidden">
                <Border.Background>
                    <ImageBrush ImageSource="images/categoryIcons/leg-armor.png" Stretch="Uniform"/>
                </Border.Background>
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF000000" Offset="0.81500006"/>
                        <GradientStop Color="#00000000" Offset="1"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
            </Border>
            <Border x:Name="EffectBorder" Margin="0" Grid.RowSpan="2" Visibility="Hidden" BorderBrush="#FF00FF51" BorderThickness="2" CornerRadius="10,10,10,10"/>
            <Border x:Name="EffectBorderGreen" Margin="0" Grid.RowSpan="2" Visibility="Hidden" BorderBrush="#FF00FF51" BorderThickness="2" CornerRadius="10,10,10,10"/>
            <TextBlock Text="{Binding Path=(noesis:DragDrop.IsDropCompatible), RelativeSource={RelativeSource Self}, StringFormat=Comp: ({0})}" Grid.RowSpan="2" TextWrapping="Wrap"/>
        </Grid>
        <DataTemplate.Triggers>
            <MultiDataTrigger x:Name="headSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Value="Head" Binding="{Binding Path=Category}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Head" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="armorSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Value="Armor" Binding="{Binding Path=Category}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Armor" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="WeaponSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Value="Weapon" Binding="{Binding Path=Category}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Weapon" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="feetSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Value="Feet" Binding="{Binding Path=Category}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Feet" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="CheckEmpty">
                <MultiDataTrigger.Conditions>
                    <Condition Value="{x:Null}" Binding="{Binding Path=Name}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="ItemBorder_Icon" Property="Visibility" Value="Collapsed"/>
            </MultiDataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <ControlTemplate x:Key="ListBox.Template" TargetType="ListBox">
        <Border Padding="24,24,24,24"
                BorderThickness="3,3,3,3" CornerRadius="0,0,4,4"
                BorderBrush="{DynamicResource OuterBorder.Brush}">
            <Border.Background>
                <RadialGradientBrush Center="0.5,-0.0353628" RadiusY="1.2216504" RadiusX="0.7997942" GradientOrigin="0.5,-0.0353628">
                    <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.734363"/>
                            <SkewTransform CenterX="0.5" CenterY="0.734363"/>
                            <RotateTransform CenterX="0.5" Angle="-0.109232254" CenterY="-0.035362754"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </RadialGradientBrush.RelativeTransform>
                    <GradientStop Offset="1" Color="#FF000000"/>
                    <GradientStop Offset="0" Color="#FF172A30"/>
                </RadialGradientBrush>
            </Border.Background>
            <ItemsPresenter/>
        </Border>
    </ControlTemplate>
    <ControlTemplate x:Key="ItemContainer.Template" TargetType="ListBoxItem">
        <Border x:Name="ItemBorder"
                Padding="8,8,8,8"
                BorderThickness="{TemplateBinding BorderThickness}"
                Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                RenderTransformOrigin="0.5,0.5">
            <Border x:Name="SelectedBorder"
                    BorderThickness="3,3,3,3" CornerRadius="12,12,12,12"
                    BorderBrush="#0000A6DE" RenderTransformOrigin="0.5,0.5">
                <ContentPresenter/>
            </Border>
            <!--<b:Interaction.Triggers>
                <b:EventTrigger EventName="PreviewMouseLeftButtonDown">
                    <b:InvokeCommandAction Command="{Binding events.itemClickedEvent}" CommandParameter="{Binding name}"/>
                </b:EventTrigger>
            </b:Interaction.Triggers>-->
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter TargetName="SelectedBorder" Property="BorderBrush" Value="#FF0AECEF"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="ItemBorder" Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <ScaleTransform ScaleY="1.05" ScaleX="1.05"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <!--<MultiDataTrigger x:Name="Undiscovered_makes_it_small">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=isDiscovered}" Value="False"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="SelectedBorder" Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <ScaleTransform ScaleX="0.85" ScaleY="0.85"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
            </MultiDataTrigger>-->
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="ItemContainer.Style"
           TargetType="ListBoxItem"
           BasedOn="{StaticResource {x:Type ListBoxItem}}">
        <Setter Property="Template" Value="{DynamicResource ItemContainer.Template}"/>
        <Setter Property="noesis:DragDrop.Role" Value="DragAndDrop"/>
        <Setter Property="noesis:DragDrop.MatchKind" Value="False"/>
        <Setter Property="noesis:DragDrop.Kind" Value="{Binding RelativeSource={RelativeSource Self}, Path=Content.Category}"/>
    </Style>
    <!--<ControlTemplate x:Key="ExitButton.Template" TargetType="Button">
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="BackgroundBorder" Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform Y="-7"/>
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
                <Setter TargetName="ContentPresenter0" Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <ScaleTransform ScaleY="1.02" ScaleX="1.02"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
                <Setter TargetName="BackgroundBorder" Property="BorderBrush">
                    <Setter.Value>
                        <RadialGradientBrush RadiusY="2.4182773" RadiusX="1.7369239" GradientOrigin="0.5,0.120113" Center="0.5,0.120113">
                            <RadialGradientBrush.RelativeTransform>
                                <TransformGroup>
                                    <ScaleTransform CenterX="0.466036" CenterY="0"/>
                                    <SkewTransform CenterX="0.466036" CenterY="0"/>
                                    <RotateTransform CenterX="0.5" Angle="0.5255598" CenterY="0.120113"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </RadialGradientBrush.RelativeTransform>
                            <GradientStop Offset="1" Color="#00FFFFFF"/>
                            <GradientStop Offset="0" Color="#FFFFFFFF"/>
                        </RadialGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="BackgroundBorder" Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform Y="0"/>
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
                <Setter TargetName="BackgroundBorder" Property="Background">
                    <Setter.Value>
                        <RadialGradientBrush GradientOrigin="0.5,0.845792" RadiusY="1.3041167" RadiusX="1.0593044" Center="0.5,0.845792">
                            <RadialGradientBrush.RelativeTransform>
                                <TransformGroup>
                                    <ScaleTransform CenterY="0.240982" CenterX="0.5"/>
                                    <SkewTransform CenterY="0.240982" CenterX="0.5"/>
                                    <RotateTransform Angle="-2.2567321E-05" CenterY="0.8457917" CenterX="0.5"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </RadialGradientBrush.RelativeTransform>
                            <GradientStop Offset="0.9776466" Color="#FF4D4538"/>
                            <GradientStop Offset="0" Color="#FF9E8F5B"/>
                        </RadialGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </ControlTemplate.Triggers>
        <Grid Height="64" HorizontalAlignment="Center">
            <Border x:Name="ShadowBorder"
                    Height="64"
                    Padding="{TemplateBinding Padding}"
                    CornerRadius="10,10,10,10" BorderThickness="2,2,2,2"
                    Background="#FF000000" BorderBrush="#FF000000"/>
            <Border x:Name="BackgroundBorder"
                    Height="64"
                    Padding="{TemplateBinding Padding}"
                    CornerRadius="10,10,10,10" BorderThickness="2,2,2,2"
                    RenderTransformOrigin="0.5,0.5">
                <Border.Background>
                    <RadialGradientBrush GradientOrigin="0.5,0" RadiusY="1.0017114" Center="0.5,0" RadiusX="1.0285535">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterY="0" CenterX="0.5"/>
                                <SkewTransform CenterY="0" CenterX="0.5"/>
                                <RotateTransform CenterY="0" CenterX="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Offset="0.9776466" Color="#FF4D4538"/>
                        <GradientStop Offset="0" Color="#FF9E8F5B"/>
                    </RadialGradientBrush>
                </Border.Background>
                <Border.BorderBrush>
                    <RadialGradientBrush GradientOrigin="0.5,0.120113" Center="0.5,0.120113" RadiusY="1.8385926" RadiusX="1.3957231">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="0.466036" CenterY="0"/>
                                <SkewTransform CenterX="0.466036" CenterY="0"/>
                                <RotateTransform CenterX="0.5" CenterY="0.120113" Angle="0.7797467"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Offset="1" Color="#00FFFFFF"/>
                        <GradientStop Offset="0" Color="#FFFFFFFF"/>
                    </RadialGradientBrush>
                </Border.BorderBrush>
                <ContentPresenter x:Name="ContentPresenter0"
                                  Margin="20,0,20,0"
                                  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                  RenderTransformOrigin="0.5,0.5"/>
                <Border.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform Y="-5"/>
                    </TransformGroup>
                </Border.RenderTransform>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="ExitButton.Style"
           TargetType="Button"
           BasedOn="{StaticResource {x:Type Button}}">
        <Setter Property="Margin" Value="0,0,33,0"/>
    </Style>-->
</ResourceDictionary>