When you add a child element to specific layout panels or layout
elements you may need to observe the following:
- Dock When you add child elements to a
the elements are docked to the left part of the panel by
default. The last child element that you add can fill the remaining space in the
panel if the LastChildFill property for that element is set to True. By default,
this property is set to False. When elements fill up the
panel, they are then clipped or hidden by the parent layout container.
- Stack In a stack panel, any element that you create or draw will
automatically be added to the stack as the last child. As you add
more child elements, note that the stack panel will clip (or hide)
those elements that do not fit. To edit clipped child elements, select
them by clicking on them under Objects and Timeline
in the Interaction panel. You can then edit the bounding box for the
elements, and so on.
- Popup, Viewbox,
ScrollViewer, Border Popup, Viewbox, ScrollViewer,
and Border take only a single child
element. Be aware that when you add child elements to these
layout containers, each child element that you add will simply replace the
previous child element. In general, place a grid or canvas panel into these
layout containers so that they can
hold multiple child elements.