资源和导游在WPF UI虚拟化 [英] Resources and guides to UI virtualization in WPF

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

问题描述

UI虚拟化是一种笨拙的术语描述的WPF UI控件负荷和和处置按需子元素(根据其可见性),以减少内存占用。列表框和ListView使用一类叫做VirtualizingStackPanel默认情况下,获得更高的性能。

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.

我发现这种控制,这是真正有用的,其产生,管理它的孩子与一个四叉树可滚动的Canvas对象虚拟画布。它会产生一些伟大的结果,并可以很容易地调整到您的需要。

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.

是否有任何其他指南或样品WPF是解决这一问题的控制?也许一般人的那笔交易在其他语言和工具的GUI对象的动态内存分配?

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?

推荐答案

丹Crevier对构建<一个小教程href="http://blogs.msdn.com/dancre/archive/tags/VirtualizingTilePanel/default.aspx">VirtualisingTilePanel.

Dan Crevier has a small tutorial on building a VirtualisingTilePanel.

本·康斯特布尔写了一本教程IScrollInfo,这是虚拟化的一个重要组成部分:的第1部分第2部分,的Part 3 和的Part 4

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.

这篇关于资源和导游在WPF UI虚拟化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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