问题描述
有谁知道支持虚拟化的用户界面将ListView实现时,启用分组?默认情况下,当分组是设置VirtualizingStackPanel被禁用。
Does anyone know of a ListView implementation that support UI Virtualization when grouping is enabled? By default the VirtualizingStackPanel is disabled when grouping is setup.
看来,微软不会在.NET Framework的4.0版本实现这个,所以我寻找替代解决方案。
It seems that Microsoft is not going to implement this within v4.0 of the .NET Framework so I am look for alternate solutions.
推荐答案
我已经位于的该分组的ListView转换成一个平坦的列表,支持虚拟化。不过,我可以不知道如何模仿头的扩大行动。
I have located a sample at Grouping and Virtualization MSDN Code Sample that converts the grouped ListView into a flat list which supports virtualization. However I can't work out how to imitate the expanding actions of the headers.
这篇关于WPF ListView的虚拟化分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!