Share via


UniformGridLayout.ItemsStretch 屬性

定義

取得或設定值,這個值表示專案的大小如何填滿可用空間。

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

void ItemsStretch(UniformGridLayoutItemsStretch value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")]
UniformGridLayoutItemsStretch ItemsStretch();

void ItemsStretch(UniformGridLayoutItemsStretch value);
public UniformGridLayoutItemsStretch ItemsStretch { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")]
public UniformGridLayoutItemsStretch ItemsStretch { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsStretch::None")] set; }
var uniformGridLayoutItemsStretch = uniformGridLayout.itemsStretch;
uniformGridLayout.itemsStretch = uniformGridLayoutItemsStretch;
Public Property ItemsStretch As UniformGridLayoutItemsStretch

屬性值

列舉值,指出專案的大小如何填滿可用空間。 預設值為 [無]。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

這個屬性會啟用調適型版面配置行為,讓專案重設大小以沿著非卷動軸填滿可用空間,並選擇性地維持其外觀比例。

適用於