GroupBox in WPF can only contain one element?

前端 未结 4 915
梦毁少年i
梦毁少年i 2021-02-11 12:15

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 w

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-11 12:34

    That sounds right to me. You'd need to put a Grid or Panel (StackPanel, WrapPanel, etc) as a child to define the layout.

提交回复
热议问题