Windows Mobile-Listview-大量项目10000加 [英] Windows Mobile - Listview - Large Number of items 10000 plus
问题描述
我正在构建Windows Mobile 5/6应用程序,并且在很多地方都想使用listview对象.但是,在进行一些性能基准测试时,当我有10000+个对象要加载/显示时,listview会陷入困境...有关如何最好地解决此问题的任何建议.
例如,电话簿是我要使用列表视图的区域之一.我在顶部有一个文本框,在屏幕的其余部分有一个listview.用户可以输入要搜索的名称-理想情况下,当用户键入名称时,名称列表(在列表框中)会根据文本字符串进行过滤....不幸的是,在其中加载了10000多个项目电话簿花费的时间太长了!!!
感谢您的帮助,
-Ed
I''m building an Windows Mobile 5/6 application and have a number of places where I want to use a listview object. However, in doing some performance benchmarking, the listview bogs down when I have 10000+ objects to load/display....any recommendations on how to best approach this problem.
As an example, one of the areas where I want to use a listview is an phonebook. I have a text box across the top and the listview on the rest of the screen. The user can enter the name that he wants to search - ideally, as the user types in the name, the list of names (in the listbox) gets filtered based on the text string....unfortunately, loading the 10000+ items in the phone book takes way too long!!!
Thanks for any help,
- Ed
推荐答案
也许您需要使用虚拟列表视图?这里有一个示例:
http://msdn.microsoft.com/en-us/library/bb158643.aspx [ ^ ]
不知道它是否适用于您(明智的版本),但应该会给您一些想法.
Perhaps you need to use a virtual list view? There''s a sample here:
http://msdn.microsoft.com/en-us/library/bb158643.aspx[^]
Not sure if it applies to you (version wise), but it should give you some ideas.
Nishant,
感谢您的回答....我能够运行它,但是我的cpp有点生锈...您知道我能看到的任何c#示例吗?
谢谢,
-Ed
Nishant,
Thanks for your answer....I was able to get it to run but my cpp is a bit rusty...do you know of any c# examples out there I could look at?
Thanks,
-Ed
这篇关于Windows Mobile-Listview-大量项目10000加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!