UniformGrid.Columns Property

 

Gets or sets the number of columns that are in the grid.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public int Columns { get; set; }

Property Value

Type: System.Int32

The number of columns that are in the grid. The default is 0.

A value of zero (0) for the Columns property specifies that the column count is computed based on the number of rows and the number of visible child elements that are in the Grid.

The value of the FirstColumn must be less than the value of the Columns property for the UniformGrid to work correctly.

Identifier field

ColumnsProperty

Metadata properties set to true

AffectsMeasure

.NET Framework
Available since 3.0
Return to top
Show: