Property Margin
Margin
The Adornment that enables separation of a View from other SubViews of the same SuperView. The margin offsets the Viewport from the Frame.
public Margin? Margin { get; }
Property Value
Remarks
The margin is typically transparent. This can be overriden by explicitly setting ColorScheme.
Enabling ShadowStyle will change the Thickness of the Margin to include the shadow.
The adornments (Margin, Border, and Padding) are not part of the View's content and are not clipped by the View's Clip Area.
Changing the size of an adornment (Margin, Border, or Padding) will change the size of Frame which will call SetNeedsLayout() to update the layout of the SuperView and its Subviews.