Share via


LinedFlowLayout.ItemsStretch Property

Definition

Gets or sets a value that indicates how items are sized to fill the available space.

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

void ItemsStretch(LinedFlowLayoutItemsStretch value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")]
LinedFlowLayoutItemsStretch ItemsStretch();

void ItemsStretch(LinedFlowLayoutItemsStretch value);
public LinedFlowLayoutItemsStretch ItemsStretch { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")]
public LinedFlowLayoutItemsStretch ItemsStretch { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsStretch")] set; }
var linedFlowLayoutItemsStretch = linedFlowLayout.itemsStretch;
linedFlowLayout.itemsStretch = linedFlowLayoutItemsStretch;
Public Property ItemsStretch As LinedFlowLayoutItemsStretch

Property Value

An enumeration value that indicates how items are sized to fill the available space. The default is None.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

Set this property to Fill to have items stretched horizontally to fill the width of the row. Items in the last row are not affected by this property.

This screenshot shows a gallery of photos laid out with the default stretch value of None.

An image gallery. Items in the first two rows are not stretched and there is blank space at the end of the rows.

This screenshot shows the same gallery of photos laid out with the stretch value of Fill.

A screenshot of an image gallery. Items in the first two rows are stretched horizontally to take up all available space.

Applies to