在更新silverlight数据网格的ItemSource时保持滚动位置 [英] Maintain scroll position on updating the ItemSource of a silverlight datagrid

查看:76
本文介绍了在更新silverlight数据网格的ItemSource时保持滚动位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Silverlight应用程序中使用DataGrid来显示一些在计时器上刷新的数据。我的问题是,当发生这种情况时,网格中的垂直滚动条重置到顶部,而我希望它保持在相同的位置。有谁知道我怎么能做到这一点?

I''m using a DataGrid in my silverlight application to display some data that''s refreshed on a timer. My problem is that when this happens the vertical scrollbar in the grid resets to the top, whereas I want it to stay in the same position. Does anyone know how I can make this happen?

推荐答案

你的问题在这里得到解答: http://social.msdn.microsoft.com/Forums/en-US/silverlightarchieve/thread/630b67f6-9feb-4e1b-9f91 -7c8baaf3f334 [ ^ ]



最好的问候。
Your question was answered here: http://social.msdn.microsoft.com/Forums/en-US/silverlightarchieve/thread/630b67f6-9feb-4e1b-9f91-7c8baaf3f334[^]

Best Regards.


这篇关于在更新silverlight数据网格的ItemSource时保持滚动位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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