<ListBox x:Name="tab_armor" Width="620" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="13,172,10.2,38.8" Background="{x:Null}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" ScrollViewer.VerticalScrollBarVisibility="Visible" BorderBrush="{x:Null}" AutomationProperties.IsColumnHeader="True">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="8" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
//////////This is the manually added labels, which I need to sort by.
<Label Content="Sort" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FF07BCFF" HorizontalContentAlignment="Center"/>
<Label Content="Name" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFCAA201" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Label Content="AC" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFCAA201" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Label Content="Stealth" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFCAA201" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Label Content="Cost" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFCAA201" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Label Content="Weight" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFCAA201" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Label Content="$" VerticalAlignment="Top" Width="74" FontFamily="Baskerville Old Face" FontSize="16" FontWeight="Bold" Foreground="#FFFFE500" HorizontalAlignment="Center" HorizontalContentAlignment="Center"/>
<Label x:Name="qty" Content="Qty" HorizontalAlignment="Center" VerticalAlignment="Top" Width="51" FontFamily="UnZialish" FontSize="12" FontWeight="Bold" Foreground="#FFFFE500" HorizontalContentAlignment="Center" Grid.IsSharedSizeScope="True" AutomationProperties.IsColumnHeader="True" AutomationProperties.Name="qty" MouseUp="qty_MouseUp"/>
//////////This is an example of 1 of the rows.
<Image x:Name="ImageShield" HorizontalAlignment="Center" Height="63" VerticalAlignment="Top" Width="74" Source="Images/i_shield.png" Stretch="UniformToFill" ToolTip="Right Click to + Left Click to -" MouseLeftButtonUp="ImageShield_MouseLeftButtonUp" MouseRightButtonUp="ImageShield_MouseRightButtonUp"/>
<Label Content="Shield" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="10" FontWeight="Bold" Foreground="#FFADA5A5" Height="47" VerticalContentAlignment="Center" FontStretch="Condensed" HorizontalContentAlignment="Center"/>
<Label Content="2" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="10" FontWeight="Normal" Foreground="#FFADA5A5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label Content="N/A" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="10" FontWeight="Normal" Foreground="#FFADA5A5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label Content="10gp" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="10" FontWeight="Normal" Foreground="#FFADA5A5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label Content="6lbs" HorizontalAlignment="Center" VerticalAlignment="Top" Width="74" FontFamily="UnZialish" FontSize="10" FontWeight="Normal" Foreground="#FFADA5A5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Label Content="$" VerticalAlignment="Top" Width="74" FontFamily="Baskerville Old Face" FontSize="16" FontWeight="Bold" Foreground="#FFFFE500" HorizontalAlignment="Center" HorizontalContentAlignment="Center" MouseDown="Label_MouseDown"/>
<TextBox x:Name="qty1" Height="23" TextWrapping="Wrap" Text="0" Width="52" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF4DB425" MaxLength="7" FontSize="12" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>