<Window x:Class="CollaborativePlatformMain.Form.FloorDrawingForm"
        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:local="clr-namespace:CollaborativePlatformMain.Form"
        mc:Ignorable="d" Title="楼层管理器"  WindowStartupLocation="CenterScreen"
        SizeToContent="WidthAndHeight"  ResizeMode="NoResize" Loaded="Window_Loaded"
        Closed="Window_Closed">

    <StackPanel>

        <DockPanel>

            <StackPanel Width="80" Height="400" >
                <Border BorderBrush="Black"  BorderThickness="1"  Width="80" Height="400">

                    <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0,0,0,0" >
                        <ItemsControl x:Name="sv_floor" >
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel/>
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>

                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel  Margin="0,10,0,0">
                                        <TextBlock Name="tb_FloorName" Text="{Binding FloorName}" HorizontalAlignment="Center"
                                               VerticalAlignment="Center" Width="80" TextAlignment="Center"
                                               PreviewMouseLeftButtonDown="tb_FloorName_PreviewMouseLeftButtonDown"/>
                                    </StackPanel>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                        </ItemsControl>
                    </ScrollViewer>

                </Border>
            </StackPanel>

            <StackPanel Width="200" Height="400">

                <Border BorderBrush="Black" BorderThickness="1"  Width="200" Height="400">
                    <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0,0,0,0">
                        <ItemsControl x:Name="sv_layer" >
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel/>
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>

                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel  Margin="5,5,0,0">
                                        <TextBlock Name="tb_LayerName" Text="{Binding LayerName}" HorizontalAlignment="Center" 
                                               VerticalAlignment="Center" Width="180"
                                               PreviewMouseLeftButtonDown="tb_LayerName_PreviewMouseLeftButtonDown_1"/>
                                    </StackPanel>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                        </ItemsControl>
                    </ScrollViewer>
                </Border>

            </StackPanel>

        </DockPanel>

        <StackPanel>
            <Button Name="bt_determine" Width="280" Height="26" Content="确定" Margin="0,5,0,5" Click="bt_determine_Click"/>
        </StackPanel>


    </StackPanel>
</Window>
