Share via


LinedFlowLayout.MinItemSpacing Property

Definition

Gets or sets the minimum space between items on the horizontal axis.

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

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

void MinItemSpacing(double value);
public double MinItemSpacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultMinItemSpacing")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultMinItemSpacing")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultMinItemSpacing")]
public double MinItemSpacing { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultMinItemSpacing")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultMinItemSpacing")] set; }
var double = linedFlowLayout.minItemSpacing;
linedFlowLayout.minItemSpacing = double;
Public Property MinItemSpacing As Double

Property Value

Double

double

The minimum space (in pixels) between items on the horizontal axis. The default is 0.0.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Examples

<ItemsView ItemsSource="{x:Bind Photos}">
    <ItemsView.Layout>
        <LinedFlowLayout MinItemSpacing="6"/>
    </ItemsView.Layout>
</ItemsView>

Remarks

The spacing may exceed this minimum value when ItemsStretch is set to None and ItemsJustification is set to SpaceEvenly, SpaceAround, or SpaceBetween.

Applies to