| 12345678910111213141516171819202122232425262728293031323334353637 | <UserControl x:Class="FurnaceUI.Controls.SlotsList"             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"              xmlns:local="clr-namespace:FurnaceUI.Controls"             mc:Ignorable="d" Height="643" Width="1232">    <Grid>        <ListBox x:Name="list">            <ListBox.ItemTemplate>                <DataTemplate>                        <WrapPanel Orientation="Horizontal" Margin="0,0,0,5">                        <Button VerticalAlignment="Center" Tag="{Binding Slot}" IsHitTestVisible="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=IsListEnable}" Background="{Binding BkColor}" Width="115"  Height="32" Click="Button_Click_1" Margin="2">                            <Button.Content>                                <Grid>                                    <Grid.ColumnDefinitions>                                        <ColumnDefinition Width="35"/>                                        <ColumnDefinition/>                                    </Grid.ColumnDefinitions>                                    <TextBlock Text="{Binding Slot,StringFormat={}0:}" TextAlignment="Left" VerticalAlignment="Center" Width="33" ></TextBlock>                                    <TextBlock Grid.Column="1" Text="{Binding Description}" VerticalAlignment="Center"/>                                </Grid>                            </Button.Content>                        </Button>                    </WrapPanel>                </DataTemplate>            </ListBox.ItemTemplate>            <ListBox.ItemsPanel>                <ItemsPanelTemplate>                    <WrapPanel  Orientation="Vertical" Height="670" IsItemsHost="True" Margin="4"></WrapPanel>                </ItemsPanelTemplate>            </ListBox.ItemsPanel>        </ListBox>    </Grid></UserControl>
 |