C# 如何在windows phone中绑定不同大小的listbox中的数据

C# 如何在windows phone中绑定不同大小的listbox中的数据,c#,windows-phone-7,xaml,C#,Windows Phone 7,Xaml,是否可以将列表框中的数据绑定为不同的-2大小 我想在windows phone中使用单击并按住事件以以下格式显示列表框绑定数据 这是可能的。 您需要创建两个不同的数据模板,并在 向项目中添加一个列表框,并定义一个列表框,如下所示: <ListBox Source="{ set your binding here}"> <ListBox.ItemsPanel> <ItemsPanelTemplate>

是否可以将列表框中的数据绑定为不同的-2大小

我想在windows phone中使用单击并按住事件以以下格式显示列表框绑定数据

这是可能的。 您需要创建两个不同的数据模板,并在

向项目中添加一个列表框,并定义一个列表框,如下所示:

<ListBox Source="{ set your binding here}">
    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <toolkit:WrapPanel/>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
    <ListBox.ItemsPannel>
   <ListBox.ItemTemplate>
      define your DataTemplates and dataTempleteSelectors here
   </ListBox.ItemTemplate>

在此处定义DataTemplates和DataTemplateSelector

请给我一个完整的例子,我有一些xml格式的mp4视频链接。xml还存储视频信息,如视频图像、描述、id等。我正在解析xml并将数据存储在列表中。现在,我尝试创建一个showcase,以上述显示图像格式仅显示三个视频。