Table of Contents

Property Margin

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Margin

Gets or sets the outer margin of a control.

public virtual Thickness Margin { get; set; }

Property Value

Thickness

Provides margin values for the control. The default value is a Thickness with all properties equal to 0 (zero).

Remarks

The margin is the space between this control and the adjacent control. Margin is set as a Thickness structure rather than as a number so that the margin can be set asymmetrically. The Thickness structure itself supports string type conversion so that you can specify an asymmetric Margin in UIXML attribute syntax also.