<Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.Legend.DetailedLegendPage"
        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.Legend"
        mc:Ignorable="d"
        Title="图例详情" Width="663" Height="430"
        Loaded="Window_Loaded">

    <StackPanel Margin="10,10,0,0">
        <Button Margin="0,0,0,5" Content="返回" Click="returnBackBu_Click" HorizontalAlignment="Left" Name="returnBackBu"/>
        <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">
                            <!-- 第一行文本  图片 -->
                            <Image Source="{Binding ImagePath}" Width="90" Height="60"/>
                            <!-- 第二行文本  文件夹名称 -->
                            <Label Name="lb_legendName" Content="{Binding Name}" BorderThickness="0" />
                        </StackPanel>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </ScrollViewer>
    </StackPanel>
</Page>