<Window x:Class="CollaborativePlatformMain.Form.MessageSubPage.SuspensionForm"
        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="工具栏"  WindowStartupLocation="CenterScreen"
        SizeToContent="WidthAndHeight"  ResizeMode="NoResize" Loaded="Window_Loaded"
        Closed="Window_Closed">

    <StackPanel>

        <!--<StackPanel Background="{DynamicResource Blue}">
            <Label Content="工具栏" BorderThickness="0" Foreground="White"  Background="{DynamicResource Blue}" HorizontalAlignment="Left"/>
        </StackPanel>-->

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

                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <DockPanel MouseDown="DockPanel_MouseDown" Margin="0,10,0,0">
                                <Label Name="lb_legendName" Content="{Binding FuncitonName}" Width="110" Background="WhiteSmoke" BorderThickness="0" HorizontalAlignment="Center"/>
                            </DockPanel>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </ScrollViewer>
        </StackPanel>
    </StackPanel>
</Window>
