UniformGridLayout.ItemsStretch Property

Definition

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

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

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

This property enables adaptive layout behavior where the items are sized to fill the available space along the non-scrolling axis, and optionally maintain their aspect ratio.

Applies to