且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Windows Phone 8.1/Windows 10 上创建自定义 VirtualizingPanel?

更新时间:2023-01-26 09:56:48

你不能从 C# 中的VirtualizingPanel"继承是因为它是一个 Windows 运行时类并且没有由 Windows 元数据(windows.winmd 文件).UI虚拟化只是一个概念,会有点复杂,但是可以从头开始实现.我认为在 WPF 中实现虚拟化面板的博客系列将是一个好的开始.

You can’t inherit from the "VirtualizingPanel" in C# is because it is a Windows Runtime Class and there is no constructor function exposed by the Windows metadata (windows.winmd file). The UI virtualizing is only a concept, it will be a little complex, but it is possible to implement it from scratch. I think the blog series implementing a virtualized panel in WPF will be a good start.

第 1 部分:http://blogs.msdn.com/b/dancre/archive/2006/02/06/526310.aspx

第 2 部分:http://blogs.msdn.com/b/dancre/archive/2006/02/13/531550.aspx

第 3 部分:http://blogs.msdn.com/b/dancre/archive/2006/02/14/532333.aspx

P.S:博客是关于WPF的,但基本思路是一样的.

P.S: the blog is about WPF, but the basic idea is the same.