WPF中的GroupBox只能包含一个元素? [英] GroupBox in WPF can only contain one element?
本文介绍了WPF中的GroupBox只能包含一个元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
GroupBox 似乎只能包含一个元素,如果我放置多个元素,它不会进入(或在混合中被删除).
It seem that GroupBox can only contain one element, if I place more than one it's won't go inside(or get deleted in blend).
这是故意的还是我做错了什么?
Is this by design or am I doing something wrong?
推荐答案
这对我来说是正确的.您需要将 Grid 或 Panel(StackPanel、WrapPanel 等)作为子项来定义布局.
That sounds right to me. You'd need to put a Grid or Panel (StackPanel, WrapPanel, etc) as a child to define the layout.
这篇关于WPF中的GroupBox只能包含一个元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文