Quantcast
Channel: My musings on .Net Technology » Uncategorized
Viewing all articles
Browse latest Browse all 17

Incremental Loading with GridView in Windows 8

$
0
0

GridView and ListView are the two essential controls and forms the very foundation for most W8 apps, these controls not only support virtualization out of the box but also supports lazy loading i.e. the content in the grid view is dynamically fetched and loaded as you scroll through the control.

Following is an example of incremental loading from my Reddit-Pictures app, initially when the app is loaded only a handful of images are pre-fetched, and as you scroll, the next set of images are loaded (you can see the scroll bar size changing as well because of the asynchronous loading of images). The entire incrmental loading infrastructure is based on asynchronous mechanism (using async-await).

To support incremental loading,  your underlying data collection (which is bounded to grid) needs to implement ISupportIncrementalLoading interface, that is all it takes to support asynchronous incremental loading.



Viewing all articles
Browse latest Browse all 17

Trending Articles