Implementing WinRT Data Virtualization in C #

I have been asked this question on the MSDN forum (without success), maybe StackOverflow will prove its strength again ...

I attended a session of Hamid Mahmoud in the collection and list applications and was very pleased to see support at the data virtualization management level. Unfortunately, no details were given about how to implement IVirtualizingVector and IIncrementalLoadingVector, and it is unclear how to do this if you look at the interfaces themselves. Can anyone send a sample?

An additional bonus question for SO is whether there is an easier way to implement IAsyncOperation (IIncrementalLoadingVector implementation is required) than from scratch?

+7
source share
2 answers

For your bonus question, check out the overloaded Create method available in System.Runtime.InteropServices.WindowsRuntime.AsyncInfoFactory , in particular the overloads that accept Func<Task<T>> .

+3
source

I posted an article on my blog that shows how to implement IVirtualizingVector here . It describes an overview of how IVirtualizingVector works, as well as an implementation that you can use, released as part of the Cocoon framework . I hope also to show how to use IIncrementalLoadingVector in the future.

+3
source

All Articles