StackLayout.Spacing Property
Definition
Gets or sets a value which indicates the amount of space between each child element.
public double Spacing { get; set; }
member this.Spacing : double with get, set
Property Value
A value in device pixels which indicates the amount of space between each element. The default value is 6.0.
Remarks
Setting this value triggers a layout cycle if the StackLayout is already in a parent Layout.
The following example sets the Spacing on construction of a StackLayout.
var stackLayout = new StackLayout {
Spacing = 10
};