Share via


StackLayout.Spacing Property

Definition

Gets or sets a uniform distance (in pixels) between stacked items. It is applied in the direction of the StackLayout's Orientation.

public:
 property double Spacing { double get(); void set(double value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
double Spacing();

void Spacing(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
double Spacing();

void Spacing(double value);
public double Spacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")]
public double Spacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="0.0")] set; }
Public Property Spacing As Double

Property Value

Double

double

The uniform distance (in pixels) between stacked items.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Applies to