Freigeben über


LinedFlowLayout.MinItemSpacing Eigenschaft

Definition

Ruft den minimalen Abstand zwischen Elementen auf der horizontalen Achse ab oder legt diese fest.

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

Eigenschaftswert

Double

double

Der minimale Abstand (in Pixel) zwischen Elementen auf der horizontalen Achse. Der Standard ist 0,0.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Beispiele

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

Hinweise

Der Abstand kann diesen Mindestwert überschreiten, wenn ItemsStretch auf None und ItemsJustification auf SpaceEvenly, SpaceAroundoder SpaceBetweenfestgelegt ist.

Gilt für: