如何在GridView中获取滚动条的位置? [英] How can I get the position of scroll bar in GridView?

查看:274
本文介绍了如何在GridView中获取滚动条的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在GridView中加载数千张图片。如果我一次将所有数据绑定到GridView,UI将等待几秒钟显示。所以,我将在第一次加载GridView的第一页,然后在
用户将GridView滚动到某个位置时加载当前页面。

I want to load thousands of pictures in GridView. If I set all of the data binding to GridView at one time, UI is waiting for several seconds to show. So, i am going to load just the first page of GridView at the first time, then load the current page when user scroll the GridView to some position.

有没有知道GridView中滚动条位置的方法?或者其他任何建议? 

Is there any method to know the position of scroll bar in GridView? Or any other suggestions? 

谢谢。

推荐答案


您好,

Hi,

也许您可以尝试数据虚拟化来解决您的问题。

Maybe you can try data virtualization to solve your problem.

如果您使用数据虚拟化,我认为您不需要知道滚动条的位置。

If you use data virtualization, I think you don't need to know the position of scroll bar.

http://www.telerik.com/community/forums/silverlight/data-virtualization/datavirtualization-of-gridview .aspx

 


这篇关于如何在GridView中获取滚动条的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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