Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF ListView Virtualization Grouping

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.

It seems that Microsoft is not going to implement this within v4.0 of the .NET Framework so I am look for alternate solutions.

like image 460
Luke Avatar asked Jul 09 '09 05:07

Luke


2 Answers

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.

like image 184
Luke Avatar answered Nov 15 '22 15:11

Luke


wpf/.net 4.5 now supports this https://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingpanel.isvirtualizingwhengrouping(v=vs.110).aspx

If you are still targeting 4.0 you can set it with reflection so at least some users can get the benefit.

like image 43
Jack Woodward Avatar answered Nov 15 '22 13:11

Jack Woodward