FrameworkElement.Margin property

Expand
This topic has not yet been rated - Rate this topic

FrameworkElement.Margin property

[This documentation is preliminary and is subject to change.]

Gets or sets the outer margin of a FrameworkElement.

Syntax


public Thickness Margin { get; set; }


<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

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

FrameworkElement

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD