Share via


LinedFlowLayout.ItemsJustification Property

Definition

Gets or sets a value that indicates how items are aligned on the horizontal axis.

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

void ItemsJustification(LinedFlowLayoutItemsJustification value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
LinedFlowLayoutItemsJustification ItemsJustification();

void ItemsJustification(LinedFlowLayoutItemsJustification value);
public LinedFlowLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")]
public LinedFlowLayoutItemsJustification ItemsJustification { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultItemsJustification")] set; }
var linedFlowLayoutItemsJustification = linedFlowLayout.itemsJustification;
linedFlowLayout.itemsJustification = linedFlowLayoutItemsJustification;
Public Property ItemsJustification As LinedFlowLayoutItemsJustification

Property Value

An enumeration value that indicates how items are aligned. The default is Start.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

This diagram shows the effects of each LinedFlowLayoutItemsJustification enum value on the horizontal arrangement of items.

The lined flow layout items justification enum page contains descriptions of each value shown in this diagram.

These screenshots show an example of each value applied to an image gallery.

Start Items are aligned with the start of the line, with extra space at the end. Spacing between items does not change.

Center Items are aligned in the center of the line, with extra space at the start and end. Spacing between items does not change.

End Items are aligned with the end of the line, with extra space at the start. Spacing between items does not change.

SpaceAround Items are aligned so that extra space is added evenly before and after each item.

SpaceBetween Items are aligned so that extra space is added evenly between adjacent items. No space is added at the start or end.

SpaceEvenly Items are aligned so that extra space is added evenly before and after each item.

Applies to