我需要和我的 facebook 朋友一起创建一个包装面板,这意味着 itemcount 超过 400,加载所有项目需要 5-10 秒。
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
这段代码很好,但它将所有元素放在 1 Row ...:
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
任何想法如何将项目包装添加到 VirtualizingStackPanel 或如何将虚拟化添加到 WrapPanel: