<Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.SeconLegendPage"
        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"
        Width="663" Height="430"
        Loaded="Window_Loaded">
    <StackPanel Margin="10,10,0,0">

        <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>

        <!--<WrapPanel Name="wp_legend">
            <StackPanel>
                <Image Source="/Image/folderImage.png" Width="90" Height="60"/>
                <Label Content="门窗大样"/>
            </StackPanel>

            <StackPanel>
                <Image Source="/Image/folderImage.png" Width="90" Height="60"/>
                <Label Content="家具"/>
            </StackPanel>

            <StackPanel>
                <Image Source="/Image/folderImage.png" Width="90" Height="60"/>
                <Label Content="户型"/>
            </StackPanel>

            <StackPanel>
                <Image Source="/Image/folderImage.png" Width="90" Height="60"/>
                <Label Content="墙体大样"/>
            </StackPanel>

            <StackPanel Name="sp_add1">

            </StackPanel>

            <StackPanel Name="sp_add2">

            </StackPanel>

            <StackPanel Name="sp_add3">

            </StackPanel>

            <StackPanel Name="sp_add4">

            </StackPanel>

            <StackPanel Name="sp_add5">

            </StackPanel>

            <StackPanel>
                <Image Source="/Image/add.png" Width="90" Height="60" MouseDown="Image_MouseDown"/>
                <Label Content="新增l"/>
            </StackPanel>

        </WrapPanel>-->



    </StackPanel>
</Page>
