LinedFlowLayout.MinItemSpacing Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for