Positioning components


How do people generally do it:

[]Is it typically easier to have child components position themselves on the parents?[/]
[]Or do parents typically manage the position of their child components?[/][/list]

I’ve been trying both ways, but haven’t formed an opinion yet.


The parent creates the child control so it should set the size and position. Or you can have the child set its own size (for fixed size Components), and the parent will just set the position.

If you want to have the child automatically stretch or move when the parent is resized then you can use a class like this one: