我在 MSDN 论坛上提出了这个问题(没有成功),也许 StackOverflow 会再次证明它的实力...
我参加了 Hamid Mahmood 的关于收集和列表应用程序的会议,很高兴看到对数据虚拟化的控制级支持。不幸的是,没有给出如何实现IVirtualizingVector和IIncrementalLoadingVector的详细信息,并且通过查看接口本身也不清楚如何实现这一点。
有人可以发布样本吗?
SO 的额外奖励问题 - 是否有比“从头开始”编码更简单的方法来实现 IAsyncOperation(IIncrementalLoadingVector 实现所需)?
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"?
发布评论
评论(2)
对于您的额外问题,请查看
System.Runtime.InteropServices.WindowsRuntime.AsyncInfoFactory
中提供的重载Create
方法,特别是采用Func 的重载;T>>
。For your bonus question, have a look at the overloaded
Create
method available inSystem.Runtime.InteropServices.WindowsRuntime.AsyncInfoFactory
, specifically the overloads that takeFunc<Task<T>>
.我在我的博客上发布了一篇文章,展示如何实现 IVirtualizingVector Cocoon 框架的一部分发布的实现。我希望将来也能展示如何使用 IIncrementalLoadingVector。
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.