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

注解

此属性支持自适应布局行为,其中项目的大小被调整为填充沿非滚动轴的可用空间,并可以选择保持其纵横比。

适用于