Resources and guides to UI virtualization in WPF [closed]

ぃ、小莉子 提交于 2019-11-27 11:59:37

问题


UI Virtualization is an awkward terminology that describes WPF UI controls that load and and dispose child elements on demand (based on their visibility) to reduce memory footprint. ListBox and ListView use a class called VirtualizingStackPanel by default to achieve higher performance.

I found this control, which is really helpful, a virtualized canvas which produces a scrollable Canvas object that manages its children with a quadtree. It produces some great results and can easily be tweaked to your needs.

Are there any other guides or sample wpf controls that deal with this issue? Maybe generic one's that deal with dynamic memory allocation of gui objects in other languages and toolkits?


回答1:


Dan Crevier has a small tutorial on building a VirtualisingTilePanel.

Ben Constable has written a tutorial on IScrollInfo, which is an essential part of the virtualisation: Part 1, Part 2, Part 3 and Part 4.



来源:https://stackoverflow.com/questions/126230/resources-and-guides-to-ui-virtualization-in-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!