Working with the Stack Panel
As the name suggests, the Stack panel stacks its containing elements into a single line. As with the Grid panel, the widths and heights can be set dynamically.
To change the orientation of the Stack panel:
- From the Toolbox, choose the StackPanel tool and draw a Stack panel on the Artboard.
- From the Toolbox, choose the Selection tool.
- Double-click the Stack panel on the Artboard. Draw a few objects in the Stack panel (Figure 4.24).
Figure 4.24 Three objects drawn in a Stack panel.
- By default, the orientation of elements within a Stack panel is vertical. To change the orientation, select the Stack panel. In the Layout section of the Properties panel, from the Orientation pop-up menu, choose Horizontal (Figure 4.25).
Figure 4.25 The Orientation pop-up menu in the Layout section of the Properties panel.