WPF ListView的虚拟化分组 [英] WPF ListView Virtualization Grouping

查看:540
本文介绍了WPF ListView的虚拟化分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道支持虚拟化的用户界面将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.

推荐答案

我已经位于的分组和虚拟化MSDN code样品该分组的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的虚拟化分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆