问题标签 [nested-controls]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
64 浏览

wpf - ListBox内DataGrid的虚拟化

我的布局:
在此处输入图像描述

外部作品的虚拟化,ListBox但内部作品DataGrid没有。可能是因为外部ListBox包含ScrollViewer内部:

提供了一个关于ScrollViewer其子内容的窗口。问题是子内容被赋予了无限的虚拟空间。在这个虚拟空间中,DataGrid它以全尺寸呈现自身,并显示其所有子项。

看起来没有简单的解决方案。
但我什至想要一个解决方法。也许以某种方式限制外部的虚拟ScrollViewer空间?