Share via


StackLayout.Spacing Eigenschaft

Definition

Ruft einen einheitlichen Abstand (in Pixel) zwischen gestapelten Elementen ab oder legt diese fest. Es wird in Richtung der Ausrichtung des StackLayouts angewendet.

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; }
var double = stackLayout.spacing;
stackLayout.spacing = double;
Public Property Spacing As Double

Eigenschaftswert

Double

double

Der einheitliche Abstand (in Pixel) zwischen gestapelten Elementen.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Gilt für: