Layout Margin The Margin attached value can be added to any control to add margin. The value type is Thickness. Notes for control developers The ControlObject trait implementation for StyledControl<D> takes care of respecting this attached value automatically for every control.