开发者

Grouping prevents Virtualizing?

开发者 https://www.devze.com 2023-01-07 11:38 出处:网络
Is it correct, that using the grouping functionality of a ListView (through CollectionView) will prevent virtualizatio开发者_开发问答n of the items in the ListView (.net4).As of .net 4.5, this should

Is it correct, that using the grouping functionality of a ListView (through CollectionView) will prevent virtualizatio开发者_开发问答n of the items in the ListView (.net4).


As of .net 4.5, this should be available:

VirtualizatingPanel.IsVirtualizingWhenGrouping

http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingpanel.isvirtualizingwhengrouping.aspx


Yes, this is true. Once you add a GroupDescription, the ItemsPanel changes to a non-virtualizing version. If you set the panel by hand, then you also have no virtualizing unless you are using a custom panel that implements it for you.

any control derived from ItemsControl implements this functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消