[This documentation is preliminary and is subject to change.]
Gets or sets the outer margin of a FrameworkElement.
Syntax
<frameworkElement Margin="uniform"/> - or - <frameworkElement Margin="left+right,top+bottom"/> - or - <frameworkElement Margin="left,top,right,bottom"/>
XAML Values
- uniform
-
A value measured in pixels that specifies a uniform Thickness. The uniform value is applied to all four Thickness properties (Left, Top, Right, Bottom).
- left+right
-
A value measured in pixels that specifies the Left and Right of a symmetrical Thickness.
- top+bottom
-
A value measured in pixels that specifies the Top and Bottom of a symmetrical Thickness.
- left top right bottom
-
Values measured in pixels that specify the four possible dimension properties of a Thickness (Left, Top, Right, Bottom).
Note In the XAML syntaxes shown previously, you can also use a space instead of a comma as the delimiter between values.
Property value
Type: Thickness
Provides margin values for the object. The default value is a default Thickness with all properties (dimensions) equal to 0.
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 5/22/2012
