Partager via


Group or ungroup objects

Grouping two or more objects in Blend for Visual Studio 2012 creates a new layout panel and places those objects within that layout panel. Placing two or more objects together in a layout panel enables you to easily select, move, and transform the group as if the objects in that group were one object. Grouping is also useful for identifying objects that are related to each other in some way, such as the various buttons that make up a navigation element. When you ungroup objects, you are simply deleting the layout panel that contained the objects.

To group objects into a new layout panel

  1. Select the objects that you want to group.

  2. On the Object menu, point to Group Into, and then click the type of layout panel in which you want the group to reside.

    [!REMARQUE]

    If you select Viewbox, Border, or ScrollViewer to group your objects, the objects are placed in a new Grid layout panel within the Viewbox, Border, or ScrollViewer. If you ungroup objects in one of these layout panels, only the Viewbox, Border, or ScrollViewer is deleted, while the Grid layout panel remains. To delete the Grid layout panel, ungroup the objects again.

To ungroup objects and delete their layout panel

  1. Select the groups that you want to ungroup.

  2. On the Object menu, click Ungroup.

    ConseilConseil

    You can also group or ungroup objects by using Group Into or Ungroup options when you right-click the selected items in the Objects and Timeline panel.

Voir aussi

Tâches

Select or cancel the selection of objects

Concepts

Arranging objects