Edit

Share via


UniformGrid Class

Definition

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

[Windows.UI.Xaml.Data.Bindable]
public class UniformGrid : Windows.UI.Xaml.Controls.Grid
public class UniformGrid : Windows.UI.Xaml.Controls.Grid
[<Windows.UI.Xaml.Data.Bindable>]
type UniformGrid = class
    inherit Grid
type UniformGrid = class
    inherit Grid
Public Class UniformGrid
Inherits Grid
Inheritance
Windows.UI.Xaml.Controls.Grid
UniformGrid
Attributes
Windows.UI.Xaml.Data.BindableAttribute

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 Windows.UI.Xaml.Controls.Orientation.Vertical, will transpose the layout of automatically arranged items such that they start from top to bottom then based on Windows.UI.Xaml.FlowDirection. Defaults to Windows.UI.Xaml.Controls.Orientation.Horizontal.

Rows

Gets or sets the number of rows in the UniformGrid.

Attached Properties

AutoLayout

Methods

ArrangeOverride(Size) Windows.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) Windows.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