分组ListView和滚动问题 [英] Grouped ListView and problems with scroll

查看:65
本文介绍了分组ListView和滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我发现了另一个需要/应该解决的问题。让我们制作一个分组的ListView控件。现在作为数据源放置3个组,每个组有1个项目。运行,所有工作都很好。


现在将数据源更改为第一组中的20项,第二组中的1和第三组中的1项。运行应用程序,应该出现滚动条。但它完全搞砸了。它使用组来计算滚动而不是项目。首先,非常大的20个项目组,与
第二和第三组相同的滚动位置。它不可用,滚动前19项后,滚动条位于1/3;地方,然后滚动一次,它在地方结束...


更多,HidesIfEmpty的团体风格不起作用。组没有显示,但它仍然在滚动条上发生。最后,如果您在启用HidesIfEmpty的情况下放置3个空组,则只要将鼠标移动到listview,app就会崩溃。

解决方案

此问题也在您的文档中重现:
http:// msdn.microsoft.com/en-us/library/windows/apps/xaml/hh780627.aspx


只需要进行20项活动的第一个项目,然后进行2项活动。与ScrollBar相同的错误。





Hello. I found another problem that need/should be resolved. Lets make a grouped ListView controll. Now as datasource put 3 groups, each with 1 item. Run, all works fine.

Now change datasource to 20 items in first group, 1 in second and 1 in third. Run app, scrollbar should appear. But its totally messed. It uses groups to calculate scroll instead of items. First, very big group of 20 items, take same scroll place as second and third group. Its not usable, after scrolling throught first 19 items, scrollbar is at 1/3 of  place, then scroll one more time and its at end of place...

More, HidesIfEmpty of group style dont work. group is not showing, but its still taking place at scrollbar. And at end, if you put 3 empty groups with HidesIfEmpty enabled, app is crashing as soon as you move mouse to listview.

解决方案

This problem is also reproduced at Yours docs here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh780627.aspx

Just make first project with 20 activities, and second with 2 activities. Same bug with ScrollBar.



这篇关于分组ListView和滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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