.NET 3.5中的错误? ...关于ListView [英] Bug in .NET 3.5 ? ... about ListView

查看:79
本文介绍了.NET 3.5中的错误? ...关于ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我在.NET 3.5 ListView中发现了一个错误...我对此进行了解释...

我有一个包含很多行的listview和一个下一个Button ...

当我按下此按钮时,它会选择"列表视图中的另一行...我使用以下代码:

lview.SelectedItem = item;
lview.ScrollIntoView(item);

网格/列表视图变得完全疯狂,并在无限循环中上下滚动!它永远不会停止并占用我70%的CPU!

GUI被冻结!我已经暂停"了在Visual Studio中...但是没有调用我的代码!我从几周后就看到了这一点.

这是因为"ScrollIntoView"方法...当我将其删除时,一切都很好!

要尝试,只需快速调用"ScrollIntoView,速度足够快,您将看到ListView无限地从一个项目滚动到另一个项目.

感谢您的帮助

NB:我现在想为此解决一个问题: -(

I think I have discover a bug in the .NET 3.5 ListView... I explain...

I have a listview with a lot of rows... and a next Button...

When I press this button, it "select" another row in the list view... I use the following code :

lview.SelectedItem = item;
lview.ScrollIntoView(item);

But, "sometimes" the grid/listview become completely crazy and scroll up-down and down-up in a infinite loop ! It never stop and use 70% of my CPU !

The GUI is frozen ! I have "paused" in Visual Studio... but there is no call to my code ! I see this since a few weeks now.

It is because of the "ScrollIntoView" method... when I remove it all is fine !

To try, just call "quickly" ScrollIntoView, fast enough and you will see that the ListView is scrolling from one item to another infinitively.

Thanks for your help

NB: I would like to find a fix for this right now :-(

推荐答案

在什么情况下应用ListView.ScrollIntoView()?

In what event are you applying ListView.ScrollIntoView()?

 


这篇关于.NET 3.5中的错误? ...关于ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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