Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinRT Data Virtualization implementation in C#

I have asked this question on the MSDN forum (with no success), maybe StackOverflow will prove its strength one more time...

I was attending Hamid Mahmood's session on collection and list apps and was excited to see control-level support for data virtualization. Unfortunately, no details were given on how to implement IVirtualizingVector and IIncrementalLoadingVector, and it is not evident how to do so by looking at the interfaces themselves. Can anybody post a sample?

Additional bonus question for SO - is there an easier way to implement IAsyncOperation (needed by IIncrementalLoadingVector implementation) than coding it "from scratch"?

like image 218
Sergey Aldoukhov Avatar asked Sep 26 '11 19:09

Sergey Aldoukhov


2 Answers

For your bonus question, have a look at the overloaded Create method available in System.Runtime.InteropServices.WindowsRuntime.AsyncInfoFactory, specifically the overloads that take Func<Task<T>>.

like image 121
Pavel Minaev Avatar answered Sep 19 '22 06:09

Pavel Minaev


I have posted an article on my blog showing 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 open-source Cocoon framework. I hope to also show how to use IIncrementalLoadingVector in the future.

like image 3
Andy Wilkinson Avatar answered Sep 22 '22 06:09

Andy Wilkinson