Windows Phone Mango - ListBox or LongListSelector?

ぃ、小莉子 提交于 2019-12-01 21:06:13

问题


Say if I need to display a list with lots and lots of records, which control is better? Or shall I say, which control has a better scrolling experience?

I've seen a lot of people reporting issues on this LongListSelector, is it really too buggy to use?

Hope someone can shed some light on this for me. Thanks in adv. Xin


回答1:


If you don't need grouping, I wouldn't use the LongListSelector. The virtualization support is easier to use/manage with a regular ListBox.

And as of Mango, the ListBox performance issues are no longer a issue. You get smooth scrolling with both.

So I think you should stick to the ListBox.




回答2:


The LongListSelector is used when you want to do more stuff with your list instead of just showing plain list items. LongListSelector supports grouping, which again supports easily jumping to another group. Both have visualization, so if you don´t need/want that, I would go for a simple ItemsControl and a scrollviewer(which is built in in the listbox and longlistselector).



来源:https://stackoverflow.com/questions/7444927/windows-phone-mango-listbox-or-longlistselector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!