GridLayout Element
Defines a virtual flow that enables a layout of virtualized content. This element supports item reference sizes to allocate room for content that is not yet available.
Syntax
<GridLayout
AllowWrap="{true | false}"
Columns="int"
MajorAlignment="{Center | Far | Near}"
MinorAlignment="{Center | Far | Near}"
Orientation="{Horizontal | Vertical}"
ReferenceSize="Size"
Repeat="{Always | Never | WhenTooBig | WhenTooSmall}"
RepeatGap="int"
Rows="int"
Spacing="Size"
/>
Attributes
AllowWrap
Indicates whether to allow wrapping.
FocusReferenceSize
Specifies the number of columns for this grid.
MajorAlignment
Specifies the alignment within the ReferenceSize along the major axis, which must be a member of the StripAlignment enumeration.
MinorAlignment
Specifies the alignment for items within the ReferenceSize along the minor axis, which must be a member of the StripAlignment enumeration.
Orientation
Specifies the layout flow orientation, which must be a member of the Orientation enumeration.
ReferenceSize
Indicates the maximum Size of an individual item.
Repeat
Specifies when to repeat items. This value must be a member of the RepeatPolicy enumeration. When enabled, items being flowed will infinitely repeat in either direction, preventing the user from reaching the end of the list.
RepeatGap
When Repeat is enabled, specifies the distance between repeated instances.
Rows
Specifies the number of rows for this grid.
Spacing
Specifies a Size structure that indicates the spacing between each item in the flow.
Requirements
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also