在网格视图卷轴末端加载更多项目 [英] Load more items on grid view scroll end
问题描述
我正在使用XAML / C#开发Windows应用商店应用程序,并且我有一个GridView一次显示12个项目(3 x 4)。我需要做的是一旦用户滚动到最后,更多的项目被添加到GridView中。我如何在最后抓取事件进行滚动?我尝试了很多方法,但没有任何工作......
更新:
我花了一个LOOOONG的时间和大量的例子想象我做错了什么。 ListView的工作,但GridView没有...
最后我注意到,GridView项目必须有一个宽度的高度,以便增量加载工作。
请参阅这些示例以了解如何设置实现 ISupportIncrementalLoading $ c $的
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屋!