Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 WPF StackPanel,我想根据其内容的高度调整其高度。有没有本地方法可以做到这一点?StackPanel 似乎不支持“SizeToContent”
提前致谢!
StackPanel将始终根据其内容增长和缩小,但您最终看到的内容可能会受到包含 . 的内容的限制StackPanel,例如Window.
StackPanel
Window