Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.42 KB

VariableSizedWrapGridMarkup.md

File metadata and controls

33 lines (25 loc) · 1.42 KB

Markup

VariableSizedWrapGridMarkup

using UWP.Markup;

var value = new VariableSizedWrapGrid()
    .VerticalChildrenAlignment(VerticalAlignment.Center)
    .Orientation(Orientation.Horizontal)
    .MaximumRowsOrColumns(3)
    .ItemHeight(100)
    .ItemWidth(100)
    .HorizontalChildrenAlignment(HorizontalAlignment.Center);

WinUI Methods

VerticalChildrenAlignment (VerticalAlignment verticalChildrenAlignment)

Sets the alignment rules by which child elements are arranged for the vertical dimension. The default is Top.

Orientation (Orientation orientation)

Sets the direction in which child elements are arranged. The default is Vertical.

MaximumRowsOrColumns (int maximumRowsOrColumns)

Sets a value that influences the wrap point, also accounting for Orientation. The default is -1, which is a special value that indicates no maximum.

ItemWidth (double itemWidth)

Sets the width of the layout area for each item that is contained in a VariableSizedWrapGrid. The default is Double.NaN, which results in the "Auto" layout behavior.

ItemHeight (double itemHeight)

Sets a value that influences the wrap point, also accounting for Orientation. The default is -1, which is a special value that indicates no maximum.

HorizontalChildrenAlignment (HorizontalAlignment horizontalChildrenAlignment)

Sets the alignment rules by which child elements are arranged for the horizontal dimension.