Edit

Share via


UniformGrid Class

Definition

The UniformGrid control presents information within a Grid with even spacing.

public class UniformGrid : Microsoft.UI.Xaml.Controls.Grid
type UniformGrid = class
    inherit Grid
Public Class UniformGrid
Inherits Grid
Inheritance
Microsoft.UI.Xaml.Controls.Grid
UniformGrid

Constructors

UniformGrid()

Fields

AutoLayoutProperty

Determines if this element in the grid participates in the auto-layout algorithm.

ColumnsProperty

Identifies the Columns dependency property.

FirstColumnProperty

Identifies the FirstColumn dependency property.

OrientationProperty

Identifies the Orientation dependency property.

RowsProperty

Identifies the Rows dependency property.

Properties

Columns

Gets or sets the number of columns in the UniformGrid.

FirstColumn

Gets or sets the starting column offset for the first row of the UniformGrid.

Orientation

Gets or sets the orientation of the grid. When Microsoft.UI.Xaml.Controls.Orientation.Vertical, will transpose the layout of automatically arranged items such that they start from top to bottom then based on Microsoft.UI.Xaml.FlowDirection. Defaults to Microsoft.UI.Xaml.Controls.Orientation.Horizontal.

Rows

Gets or sets the number of rows in the UniformGrid.

Attached Properties

AutoLayout

Methods

ArrangeOverride(Size) Microsoft.UI.Xaml.Controls.Grid.ArrangeOverride(Windows.Foundation.Size)
GetAutoLayout(FrameworkElement)

Gets the AutoLayout Attached Property Value. Used internally to track items which need to be arranged vs. fixed in place.

MeasureOverride(Size) Microsoft.UI.Xaml.Controls.Grid.MeasureOverride(Windows.Foundation.Size)
SetAutoLayout(FrameworkElement, Nullable<Boolean>)

Sets the AutoLayout Attached Property Value. Used internally to track items which need to be arranged vs. fixed in place. Though it its required to use this property to force an element to the 0, 0 position.

Applies to