GroupBox in WPF can only contain one element?

Athiwat Chunlakhan picture Athiwat Chunlakhan · Aug 31, 2009 · Viewed 72.7k times · Source

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?

Answer

Luke Quinane picture Luke Quinane · Aug 31, 2009

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