WP7 虚拟化 WrapPanel [英] WP7 Virtualizing WrapPanel

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

问题描述

我想在我的 WP7 应用程序中使用 WrapPanel,所以我使用了 Silverlight 中包含的 wrappanel用于 Windows Phone 工具包.这个包装面板的问题在于它不支持 UI 虚拟化.

I want to use a WrapPanel in my WP7 app, so I used the wrappanel contained in Silverlight for Windows Phone Toolkit. The problem with this wrappanel is that it doesnt support UI virtualization.

您能否就如何为 WrapPanel 实现 UI 虚拟化提供一些指导?

Can you give some directions on how to implement UI virtualization for a WrapPanel?

推荐答案

你介意解释你对环绕面板的要求吗?因为在大多数情况下,您可以使用 VirtualizedStackPanel 垂直和每行内的固定项目的组合.我在许多应用程序中都这样做过,因为与我从这个小工作中获得的简单性能和灵活性相比,制作一个环绕面板虚拟化是困难的.是的,方向可以轻松触发每行项目数"更改以补偿宽度更改.

Do you mind explaining your requirement around wrap panel. Because for most of the situations you might be able to make with a combination of VirtualizedStackPanel vertically and fixed items inside each row. I have done this way in many apps, because making a wrap panel virtualizing is hard compared to what easy performance and flexibility I can get from this small work around. Yes orientation can easily trigger for 'number of items per row' change to compensate the width changes.

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

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