<Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.SeconToolLibraryPage"
        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.MessageSubPage"
        mc:Ignorable="d"
        Title="SeconContactsPage" Width="663" Height="420"
        Loaded="Window_Loaded">

    <DockPanel>
        <StackPanel Name="sp_tools" Width="100" HorizontalAlignment="Left" Background="WhiteSmoke">

            <Button Name="bt_bock" Content="块处理" Width="180" Height="30" Click="bt_bock_Click"/>
            <Button Name="bt_Comparison" Content="图纸对比" Width="180" Height="30" Click="bt_Comparison_Click"/>
            <Button Name="bt_twoReview" Content="二维审查" Width="180" Height="30" Click="bt_twoReview_Click"/>
            <Button Name="bt_text" Content="文字处理" Width="180" Height="30" Click="bt_text_Click"/>

        </StackPanel>

        <!--最右边-->
        <StackPanel Height="420"  VerticalAlignment="Top" Width="563"
                                Margin="0 0 0 0"  HorizontalAlignment="Left">

            <StackPanel Height="390">
                <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0,0,0,20">
                    <ItemsControl x:Name="sv_legend" >
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <WrapPanel/>
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>

                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel MouseDown="StackPanel_MouseDown" Margin="10,0,0,0">
                                    <StackPanel Margin="5" Height="32" Width="32" Background="Aquamarine">
                                    </StackPanel>

                                    <TextBlock Name="tb_name" Text="{Binding FuncitonName}" HorizontalAlignment="Center" />
                                    <CheckBox  Name="cb_check" IsChecked="{Binding IsCheck}" Margin="0 5 0 0" HorizontalAlignment="Center" />

                                    <!--<Image Source="{Binding ImagePath}" Width="90" Height="60" HorizontalAlignment="Center"/>--><!--
                                    <StackPanel Width="20" Height="20" Background="{DynamicResource Blue}"/>
                                    <Label Name="lb_legendName" Content="{Binding FuncitonName}" BorderThickness="0" HorizontalAlignment="Center"/>
                                    <CheckBox IsChecked="{Binding IsCheck}" Margin="20,0,0,0" HorizontalAlignment="Center"/>-->
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </ScrollViewer>
            </StackPanel>

            <DockPanel VerticalAlignment="Bottom">
                <Button HorizontalAlignment="Right" Margin="0 0 20 0" Width="110" Click="bt_addTools" Content="添加漂浮工具" />
            </DockPanel>
        </StackPanel>
    </DockPanel>
</Page>
