<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">
    <DataTemplate x:Key="DragItem.DataTemplate">
        <Grid x:Name="RootGrid"
              Width="250" Height="97"
              Background="#00000000" RenderTransformOrigin="0.5,0.5">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="97"/>
                <ColumnDefinition Width="117*"/>
                <ColumnDefinition Width="36*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="BackgroundBorder"
                    Grid.RowSpan="2" Grid.ColumnSpan="3"
                    Margin="0"
                    Background="#FF000000"
                    BorderBrush="{DynamicResource ItemOuterBorder.Brush}"
                    BorderThickness="2,2,2,2" CornerRadius="10,10,10,10"/>
            <Border x:Name="ItemBorder"
                    Grid.RowSpan="2"
                    Margin="0"
                    CornerRadius="10,10,10,10">
                <Border.OpacityMask>
                    <RadialGradientBrush RadiusY="0.51149476">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Offset="0.81500006" Color="#FF000000"/>
                        <GradientStop Offset="1" Color="#00000000"/>
                    </RadialGradientBrush>
                </Border.OpacityMask>
                <Border.Background>
                    <ImageBrush ImageSource="{Binding Path=Icon}" Stretch="Uniform"/>
                </Border.Background>
            </Border>
            <TextBlock x:Name="CharacterHeader"
                       Grid.Column="1" Grid.ColumnSpan="2"
                       Margin="3,0,6,3" HorizontalAlignment="Left"
                       VerticalAlignment="Bottom"
                       FontSize="19" FontWeight="Bold"
                       Text="{Binding Path=Name}"
                       TextAlignment="Center" TextWrapping="Wrap">
                <TextBlock.Foreground>
                    <RadialGradientBrush Center="0.5,0.302485" GradientOrigin="0.5,0.302485" RadiusY="1.9909914">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <ScaleTransform CenterX="0.5" CenterY="0.302485"/>
                                <SkewTransform CenterX="0.5" CenterY="0.302485"/>
                                <RotateTransform Angle="3.277957E-05" CenterX="0.5" CenterY="0.302485"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Offset="1" Color="#FFCFC7BC"/>
                        <GradientStop Offset="0" Color="#FFE7E3DD"/>
                    </RadialGradientBrush>
                </TextBlock.Foreground>
            </TextBlock>
            <StackPanel x:Name="StackPanel0"
                        Grid.Row="1" Grid.Column="1"
                        HorizontalAlignment="Left" VerticalAlignment="Top"
                        Orientation="Horizontal">
                <Grid x:Name="IconGrid"
                      Width="30" Height="30"
                      HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Border x:Name="Head"
                            Width="25" Height="25"
                            HorizontalAlignment="Center" VerticalAlignment="Center"
                            Visibility="Hidden">
                        <Border.OpacityMask>
                            <RadialGradientBrush RadiusY="0.51149476">
                                <RadialGradientBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                                        <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                        <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </RadialGradientBrush.RelativeTransform>
                                <GradientStop Offset="0.81500006" Color="#FF000000"/>
                                <GradientStop Offset="1" Color="#00000000"/>
                            </RadialGradientBrush>
                        </Border.OpacityMask>
                        <Border.Background>
                            <ImageBrush ImageSource="images/categoryIcons/barbute.png" Stretch="Uniform"/>
                        </Border.Background>
                    </Border>
                    <Border x:Name="Armor"
                            Width="25" Height="25"
                            HorizontalAlignment="Center" VerticalAlignment="Center"
                            Visibility="Hidden">
                        <Border.OpacityMask>
                            <RadialGradientBrush RadiusY="0.51149476">
                                <RadialGradientBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                                        <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                        <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </RadialGradientBrush.RelativeTransform>
                                <GradientStop Offset="0.81500006" Color="#FF000000"/>
                                <GradientStop Offset="1" Color="#00000000"/>
                            </RadialGradientBrush>
                        </Border.OpacityMask>
                        <Border.Background>
                            <ImageBrush ImageSource="images/categoryIcons/armor.png" Stretch="Uniform"/>
                        </Border.Background>
                    </Border>
                    <Border x:Name="Weapon"
                            Width="25" Height="25"
                            HorizontalAlignment="Center" VerticalAlignment="Center"
                            Visibility="Hidden">
                        <Border.OpacityMask>
                            <RadialGradientBrush RadiusY="0.51149476">
                                <RadialGradientBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                                        <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                        <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </RadialGradientBrush.RelativeTransform>
                                <GradientStop Offset="0.81500006" Color="#FF000000"/>
                                <GradientStop Offset="1" Color="#00000000"/>
                            </RadialGradientBrush>
                        </Border.OpacityMask>
                        <Border.Background>
                            <ImageBrush ImageSource="images/categoryIcons/stiletto.png" Stretch="Uniform"/>
                        </Border.Background>
                    </Border>
                    <Border x:Name="Feet"
                            Width="25" Height="25"
                            HorizontalAlignment="Center" VerticalAlignment="Center"
                            Visibility="Hidden">
                        <Border.OpacityMask>
                            <RadialGradientBrush RadiusY="0.51149476">
                                <RadialGradientBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                                        <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                        <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </RadialGradientBrush.RelativeTransform>
                                <GradientStop Offset="0.81500006" Color="#FF000000"/>
                                <GradientStop Offset="1" Color="#00000000"/>
                            </RadialGradientBrush>
                        </Border.OpacityMask>
                        <Border.Background>
                            <ImageBrush ImageSource="images/categoryIcons/leg-armor.png" Stretch="Uniform"/>
                        </Border.Background>
                    </Border>
                </Grid>
                <TextBlock x:Name="CharacterHeader001"
                           Margin="7,0,0,0"
                           FontSize="21" FontWeight="Bold"
                           Foreground="{DynamicResource ItemOuterBorder.Brush}"
                           Text="{Binding Path=Category}"
                           TextAlignment="Center" TextWrapping="Wrap"/>
            </StackPanel>
            <Border x:Name="EmptyBorder"
                    Grid.RowSpan="2"
                    Margin="9,9,9,9"
                    Visibility="Hidden" CornerRadius="6.6,6.6,6.6,6.6"
                    BorderThickness="2,2,2,2">
                <Border.Background>
                    <RadialGradientBrush>
                        <GradientStop Offset="1" Color="#FF100524"/>
                        <GradientStop Offset="0" Color="{DynamicResource PanelBorder.Color}"/>
                    </RadialGradientBrush>
                </Border.Background>
                <Border.BorderBrush>
                    <SolidColorBrush Color="#FF5008DA"/>
                </Border.BorderBrush>
            </Border>
        </Grid>
        <DataTemplate.Triggers>
            <MultiDataTrigger x:Name="headSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=Category}" Value="Head"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Head" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="armorSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=Category}" Value="Armor"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Armor" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="WeaponSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=Category}" Value="Weapon"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Weapon" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="feetSetter">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=Category}" Value="Feet"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="Feet" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger x:Name="EmptySetter">
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Path=Name}" Value="{x:Null}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="EmptyBorder" Property="Visibility" Value="Visible"/>
                <Setter TargetName="StackPanel0" Property="VerticalAlignment" Value="Center"/>
                <Setter TargetName="StackPanel0" Property="Grid.Row" Value="0"/>
                <Setter TargetName="StackPanel0" Property="Grid.RowSpan" Value="2"/>
            </MultiDataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>
</ResourceDictionary>