WPF Virtualized TreeView with different orientations within doesn't virtualize?

天大地大妈咪最大 提交于 2019-12-01 20:37:32

UI Virtualization relies on the ability to correctly measure the viewport and the contents that should be in view. Generally speaking, that works out well if you're scrolling in one dimension for a list-like structure (thinking of the tree view as, say, an indented list as far as rendering goes). It doesn't work out as well if you suddenly have to calculate that in two dimensions, depending on which child you're rendering. Think of what the algorithm has to work through if one of those horizontally oriented children is taller than others, but isn't currently visible on the screen - how does it determine if the next vertical child should be in view or not without calculating the layout for all of those children, thus defeating the purpose of virtualization?

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