为WP7虚拟化WrapPanel [英] Virtualizing WrapPanel for WP7

查看:121
本文介绍了为WP7虚拟化WrapPanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要与我的Facebook朋友创建一个包装面板,这意味着itemcount超过400,并且加载所有项目需要5-10秒.

I need to create a wrap panel with my facebook friends, meaning the itemcount is over 400, and it takes 5-10 seconds for all the items to load.

   <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <toolkit:WrapPanel/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>

这段代码会很好,但是它将所有元素都放在1行中……:

This code would be good, but it puts all the elements in 1 Row ...:

    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>

有关如何将项目包装添加到VirtualizingStackPanel或如何将虚拟化添加到WrapPanel的任何想法:

Any ideas how to add item wraping to VirtualizingStackPanel or how to add Virtualizing to a WrapPanel:

推荐答案

我通过创建一个简单的列表框来使用它,每个元素包含一个带有4张图像的堆栈面板.欢呼

I used it by creating a simple listbox, with each element containing a stackpanel with 4 images. cheers

这篇关于为WP7虚拟化WrapPanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆