Share via


StackPanel.Spacing Property

Definition

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

public:
 property double Spacing { double get(); void set(double value); };
double Spacing();

void Spacing(double value);
public double Spacing { get; set; }
var double = stackPanel.spacing;
stackPanel.spacing = double;
Public Property Spacing As Double
<StackPanel Spacing="double"/>

Property Value

Double

double

The uniform distance (in pixels) between stacked items.

Applies to