Share via


LinedFlowLayoutItemsJustification Enum

Definition

Defines constants that specify how items are aligned on the horizontal axis in a LinedFlowLayout.

public enum class LinedFlowLayoutItemsJustification
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 327680)]
enum class LinedFlowLayoutItemsJustification
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 327680)]
public enum LinedFlowLayoutItemsJustification
Public Enum LinedFlowLayoutItemsJustification
Inheritance
LinedFlowLayoutItemsJustification
Attributes

Fields

Name Value Description
Start 0

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

Center 1

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

End 2

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

SpaceAround 3

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

SpaceBetween 4

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

SpaceEvenly 5

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

Remarks

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

A diagram as described by each enum value description.

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