Windows.UI.Xaml.Controls.Grid.ColumnDefinitions

June 22, 2022 ยท View on GitHub

-description

Gets a list of ColumnDefinition objects defined on this instance of Grid.

-xaml-syntax

<Grid>
  <Grid.ColumnDefinitions>
    oneOrMoreColumnDefinitions
  </Grid.ColumnDefinitions>
</Grid>

-xaml-values

oneOrMoreColumnDefinitions
oneOrMoreColumnDefinitionsOne or more ColumnDefinition elements. Each such ColumnDefinition becomes a placeholder representing a column in the final grid layout.
## -property-value A list of [ColumnDefinition](columndefinition.md) objects defined on this instance of [Grid](grid.md).

-remarks

-examples

The following example creates a Grid with two columns by using ColumnDefinition s.

[!code-xamlColumnDefinitions]

-see-also

RowDefinitions, Define layouts with XAML