語言

LinedFlowLayout.ItemsStretch 屬性

定義

取得或設定一個數值,表示物品如何填滿可用空間的大小。

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

屬性值

一個列舉值,表示物品如何被大小填滿可用空間。 預設值為 None。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

設定這個屬性讓 Fill 物品水平拉伸,填滿該列的寬度。 最後一排的項目不受此屬性影響。

這張截圖展示了一張以預設拉伸值 為 None排列的照片畫廊。

一個圖片集。前兩排的項目沒有被拉伸,且行末會有空白。

這張截圖顯示了相同的照片庫,並以拉伸值 Fill排列。

一張圖片庫的截圖。前兩排的物品會被水平拉伸,佔據所有可用空間。

適用於