n Auto sizing a panel by selecting it and choosing Object ??? Auto Size ??? Fill (or Width or
Height). Auto sizing changes the size of the panel to fill its container, or fill the section (or
sections) of the grid that it resides in. Auto sizing allows the panel to resize automatically
to different window sizes.
493
Arranging Layout Panels 18
Changing a panel from one type to another
Any panel can be changed to any other panel type by selecting the panel, right-clicking, and
choosing Change Layout Type ??? (choose a panel from the list). If the panel that you changed had
not been named, then Blend puts the new panel type in the Objects list. For example, it changes
[Grid] to [StackPanel]. However, if the panel is named with a unique name, and does not just have
brackets around its type in the Objects list, then Blend does not change its name. If you gave your
panel a name, you can still recognize its type from the icon beside its name in the Objects list.
These icons are the same icons used in the panel menu in the Toolbox.
Working with child elements
Most panels can accept any number of child elements. (Placing child elements in a panel is also
known as nesting.) These child elements can be almost anything, including the following:
n Shapes
n Vector objects
n Controls
n Buttons
n Images and media files
n Layout panels
Different layout panels nest their objects in different ways, as you can see in Figure 18.
Pages:
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701