UniformGridLayout.ItemsJustification 属性

定义

获取或设置一个值,该值指示项如何在非滚动或非虚拟化轴上对齐。

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

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

void ItemsJustification(UniformGridLayoutItemsJustification value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")]
UniformGridLayoutItemsJustification ItemsJustification();

void ItemsJustification(UniformGridLayoutItemsJustification value);
public UniformGridLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")]
public UniformGridLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::UniformGridLayoutItemsJustification::Start")] set; }
Public Property ItemsJustification As UniformGridLayoutItemsJustification

属性值

一个枚举值,该值指示项的对齐方式。 默认值为 Start

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于