Windows Phone 8.1为自定义可变大小的Gridview实现虚拟化 [英] Windows phone 8.1 Implement virtualization for Custom variable sized Gridview

查看:107
本文介绍了Windows Phone 8.1为自定义可变大小的Gridview实现虚拟化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用此 1GB设备中的内存不足异常事件而崩溃.它是out项目的要求之一.我知道,当我们实现自定义项目面板时,它将失去默认的虚拟化功能.

I have implemented custom itempanel for gridview to support variable item height using this link posted by JerryNixon.My Custom panel supports 3 different sized template(depending on image dimension I am deciding which template to use).This custom Gridview should have pagination and it should support more than 200 items. Right now i could load only 50 items and it crashes because of out of memory exception event in 1GB device. Its one of the requirement in out project. I know when we implement custom itemspanel it losses default virtualization.

我已经检查了 Pin.it 应用.他们已经实现了可变大小的Gridview模板,并且性能非常好,我可以加载200多个项目.

I have checked Pin.it app. They have implemented variable sized Gridview template and performance is very good, i could load more than 200 items.

我可以通过任何方式为自定义项目面板实施虚拟化吗?我不知道如何实现虚拟化.如果有人实现了虚拟化,请给我们一些想法,以开始使用它,从而对我们有很大帮助.

Is there any way i can implement virtualization for my custom items panel? I have no idea how we can implement virtualization.If anyone has implemented it please give us some ideas how to get started with this so that it will help us a lot.

我不认为需要发布wrappanel代码.如果需要,我将其发布.

I dont think wrappanel code is required to post. If its required i ll post it.

请提出一些建议.这将是非常有帮助的:).谢谢:)

Please give some suggestions. It will be very helpful :). Thanks :)

推荐答案

最后,我们通过引用

Finally we implemented virtualized custom grdiview by referring to the code posted in this link. Code given in the link is for virtualizing horizontal gridview. I changed the code a bit to change it to vertical gridview. Many thanks to the person who posted the code. It helped a lot

这篇关于Windows Phone 8.1为自定义可变大小的Gridview实现虚拟化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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