在网格视图卷轴末端加载更多项目 [英] Load more items on grid view scroll end

查看:103
本文介绍了在网格视图卷轴末端加载更多项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XAML / C#开发Windows应用商店应用程序,并且我有一个GridView一次显示12个项目(3 x 4)。我需要做的是一旦用户滚动到最后,更多的项目被添加到GridView中。我如何在最后抓取事件进行滚动?我尝试了很多方法,但没有任何工作......



更新:
我花了一个LOOOONG的时间和大量的例子想象我做错了什么。 ListView的工作,但GridView没有...
最后我注意到,GridView项目必须有一个宽度的高度,以便增量加载工作。

解决方案

请参阅这些示例以了解如何设置实现 ISupportIncrementalLoading ObservableCollection< T> c> interface。



Metro:通过ISupportIncrementalLoading递增加载GridView和ListView

从Windows 8 Camps:GridViews / ListViews和大型数据集



WinRT:如何正确实现ISupportIncrementalLoading与导航


I am developing a Windows Store Application in XAML/C# and I have a GridView displaying 12 items at a time (3 x 4). What I need to do is once the user scrolls to the end, more items are added to the GridView. How do I catch the event for scrolling at end?? I tried many approaches, but nothing worked...

UPDATE: It took me a LOOOONG time and lots of examples to figure what I was doing wrong. ListView worked, but GridView didn't... Finally I noticed that the GridView items must have a width height in order for incremental loading to work.

解决方案

See these examples to learn how to set ObservableCollection<T> that implements the ISupportIncrementalLoading interface.

Metro: Incrementally load GridView and ListView with ISupportIncrementalLoading

From the Windows 8 Camps: GridViews/ListViews and Large Data Sets

WinRT: How to properly implement ISupportIncrementalLoading with navigation

这篇关于在网格视图卷轴末端加载更多项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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