When designing the user interface of a WPF application in XAML, should each container control contain a layout control to host all the child controls?
Take, for example, a group unit. I can either direct the controls directly to the group box, or I can use the layout control and place the layout control inside the group field, and then manage it.
I see an advantage in the latter, because the layout control is a set of well-defined rules for children's behavior. However, at the same time, my XAML tree begins to penetrate deep into the nest and is a little more difficult to navigate.
Given this, is it always better to use layout controls or are there cases where it is perfectly acceptable to drop the control inside group boxes and tabs without one? What would be the negative consequences of this, if any?
source
share