StackLayout.Spacing Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
System.Double
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
};