Content Index Search

Change the margins of an element

Margins in Microsoft® Expression Blend™ determine the amount of empty space that is around a control, object, or element. For example, margins specify the amount of space between the outside edges of an element and the boundaries of a grid panel that contains the element.

To change the margins of an element

  1. In a grid panel (make sure it is the active element), click the element for which you want to change the margins.
  2. Under Layout in the Properties panel, change the value (in pixels or, device-independent units which are approximately 1/96 inch) for any of the margins (Top, Left, Right, or Bottom). Alternatively, you can move your mouse pointer over the margin property's text box, and then click and drag your pointer when the numerical adjust cursor appears so that you can scroll through values and see the changes reflected on the artboard.
Tip You can also set margins for an element relative to its parent grid panel by clicking the margin (knot) adorners that appear around the element on the artboard when the element is selected and is in Grid layout mode. If a margin adorner is open, vertically or horizontally , that margin is not set. If a margin adorner is closed, vertically or horizontally , that margin is set. Resizing the grid panel during run time will leave any elements in place where the margins aren't set. Elements that are bound to a margin will move with the margin as the grid panel is resized.