<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:system="clr-namespace:System;assembly=mscorlib"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions"
  mc:Ignorable="d"
  d:DesignWidth="1920"
  d:DesignHeight="1080"
  d:DataContext="VModel Data 01" Background="#FF000000">
  <Viewbox>
    <Grid x:Name="MainGrid" Width="1200" Height="830" noesis:DragDrop.IsOverlayHost="True">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="212*"/>
        <ColumnDefinition Width="955*"/>
        <ColumnDefinition Width="33*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="81*"/>
        <RowDefinition Height="717*"/>
        <RowDefinition Height="32*"/>
      </Grid.RowDefinitions>
      <Border x:Name="InventoryBorder" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" Background="{DynamicResource PanelGradient.Brush}" BorderBrush="{DynamicResource OuterBorder.Brush}" BorderThickness="4,1,4,4" CornerRadius="0,0,4,4">
        <Rectangle Opacity="0.054">
          <Rectangle.Fill>
            <RadialGradientBrush GradientOrigin="0.5,1" Center="0.5,1" RadiusY="1.1460092" RadiusX="0.81538945">
              <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                  <ScaleTransform CenterY="1" CenterX="0.5"/>
                  <SkewTransform CenterY="1" CenterX="0.5"/>
                  <RotateTransform CenterY="1" CenterX="0.5"/>
                  <TranslateTransform/>
                </TransformGroup>
              </RadialGradientBrush.RelativeTransform>
              <GradientStop Offset="0" Color="#FFF0EFE1"/>
              <GradientStop Offset="1" Color="#00091B29"/>
            </RadialGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
      </Border>
      <Border x:Name="CharacterFrame" Width="424" Height="651" Margin="0,0,0,7" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Bottom">
        <Border.Background>
          <ImageBrush Stretch="UniformToFill" ImageSource="images/characters/ManAtArms.png"/>
        </Border.Background>
      </Border>
      <Grid x:Name="InventoryGrid" Grid.Column="1" Grid.Row="1">
        <Grid.RowDefinitions>
          <RowDefinition Height="67*"/>
          <RowDefinition Height="97*"/>
          <RowDefinition Height="67*"/>
          <RowDefinition Height="97*"/>
          <RowDefinition Height="86*"/>
          <RowDefinition Height="97*"/>
          <RowDefinition Height="77*"/>
          <RowDefinition Height="97*"/>
          <RowDefinition Height="32*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="138*"/>
          <ColumnDefinition Width="80*"/>
          <ColumnDefinition Width="17*"/>
          <ColumnDefinition Width="80*"/>
          <ColumnDefinition Width="169*"/>
          <ColumnDefinition Width="443*"/>
          <ColumnDefinition Width="28*"/>
        </Grid.ColumnDefinitions>
        <ContentControl x:Name="HeadEquipped" Content="{Binding Path=HeadSlot}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DropOnly" noesis:DragDrop.Kind="{Binding Path=HeadSlot.Category}" noesis:DragDrop.Tag="Slot"/>
        <ContentControl x:Name="ArmorEquipped" Content="{Binding Path=ArmorSlot}" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="3" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DropOnly" noesis:DragDrop.Kind="{Binding Path=ArmorSlot.Category}" noesis:DragDrop.Tag="Slot"/>
        <ContentControl x:Name="WeaponEquipped" Content="{Binding Path=WeaponSlot}" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="5" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DropOnly" noesis:DragDrop.Kind="{Binding Path=WeaponSlot.Category}" noesis:DragDrop.Tag="Slot"/>
        <ContentControl x:Name="FeetEquipped" Content="{Binding Path=FootSlot}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="7" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DropOnly" noesis:DragDrop.Kind="{Binding Path=FootSlot.Category}" noesis:DragDrop.Tag="Slot"/>
        <ListBox x:Name="ItemsListBox" ItemsSource="{Binding Path=Items}" Width="529" Height="530" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="7" HorizontalAlignment="Right" VerticalAlignment="Center" ItemContainerStyle="{DynamicResource ItemContainer.Style}" Template="{DynamicResource ListBox.Template}" ItemsPanel="{DynamicResource ItemsPanel.Template}" ItemTemplate="{DynamicResource Item.DataTemplate}"/>
      </Grid>
      <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Grid.RowSpan="2" Visibility="Collapsed">
        <StackPanel Width="204">
          <TextBlock Text="{Binding Path=HeadSlot.Category}" FontSize="35" TextWrapping="Wrap" Tag="{Binding Path=HeadSlot.Category}"/>
          <TextBlock Text="{Binding Path=ArmorSlot.Category}" FontSize="35" TextWrapping="Wrap" Tag="{Binding Path=ArmorSlot.Category}"/>
          <TextBlock Text="{Binding Path=WeaponSlot.Category}" FontSize="35" TextWrapping="Wrap" Tag="{Binding Path=WeaponSlot.Category}"/>
          <TextBlock Text="{Binding Path=FootSlot.Category}" FontSize="35" TextWrapping="Wrap" Tag="{Binding Path=FootSlot.Category}"/>
          <ContentControl Content="{Binding Path=HeadSlot}" Width="150" Height="150" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DragAndDrop" noesis:DragDrop.Kind="{Binding Path=HeadSlot.Category}" noesis:DragDrop.Tag="Slot"/>
          <ContentControl Content="{Binding Path=ArmorSlot}" Width="150" Height="150" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DragAndDrop" noesis:DragDrop.Kind="{Binding Path=ArmorSlot.Category}" noesis:DragDrop.Tag="Slot"/>
          <ContentControl Content="{Binding Path=WeaponSlot}" Width="150" Height="150" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DragAndDrop" noesis:DragDrop.Kind="{Binding Path=WeaponSlot.Category}" noesis:DragDrop.Tag="Slot"/>
          <ContentControl Content="{Binding Path=FootSlot}" Width="150" Height="150" ContentTemplate="{DynamicResource Item.DataTemplate}" noesis:DragDrop.Role="DragAndDrop" noesis:DragDrop.Kind="{Binding Path=FootSlot.Category}" noesis:DragDrop.Tag="Slot"/>
        </StackPanel>
        <ListBox ItemsSource="{Binding Path=Items}" Width="561" HorizontalAlignment="Left" VerticalAlignment="Top" ItemContainerStyle="{DynamicResource ItemContainer.Style}" Template="{DynamicResource ListBox.Template}" ItemsPanel="{DynamicResource ItemsPanel.Template}" ItemTemplate="{DynamicResource Item.DataTemplate}"/>
      </StackPanel>
      <Border x:Name="HeaderBorder" Grid.Column="1" Background="{DynamicResource PanelGradient.Brush}" BorderBrush="{DynamicResource OuterBorder.Brush}" BorderThickness="4,4,4,0" CornerRadius="4,4,0,0">
        <Rectangle Opacity="0.054">
          <Rectangle.Fill>
            <RadialGradientBrush GradientOrigin="0.5,1" Center="0.5,1" RadiusY="1.1460092" RadiusX="0.81538945">
              <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                  <ScaleTransform CenterY="1" CenterX="0.5"/>
                  <SkewTransform CenterY="1" CenterX="0.5"/>
                  <RotateTransform CenterY="1" CenterX="0.5"/>
                  <TranslateTransform/>
                </TransformGroup>
              </RadialGradientBrush.RelativeTransform>
              <GradientStop Offset="0" Color="#FFF0EFE1"/>
              <GradientStop Offset="1" Color="#00091B29"/>
            </RadialGradientBrush>
          </Rectangle.Fill>
        </Rectangle>
      </Border>
      <TextBlock x:Name="CharacterHeaderBackground" Text="{Binding Path=Text, ElementName=CharacterHeader}" Margin="1,14,0,0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" FontSize="50" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap"/>
      <TextBlock x:Name="CharacterHeader" Text="Character Inventory" Margin="0,8,0,0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="50" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap">
        <TextBlock.Foreground>
          <RadialGradientBrush GradientOrigin="0.5,0.302485" RadiusY="1.9909914" Center="0.5,0.302485">
            <RadialGradientBrush.RelativeTransform>
              <TransformGroup>
                <ScaleTransform CenterY="0.302485" CenterX="0.5"/>
                <SkewTransform CenterY="0.302485" CenterX="0.5"/>
                <RotateTransform Angle="3.277957E-05" CenterY="0.302485" CenterX="0.5"/>
                <TranslateTransform/>
              </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Offset="1" Color="#FFCFC7BC"/>
            <GradientStop Offset="0" Color="#FFE7E3DD"/>
          </RadialGradientBrush>
        </TextBlock.Foreground>
      </TextBlock>
    </Grid>
  </Viewbox>
</Page>
