Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.59 KB

grid_columndefinitions.md

File metadata and controls

50 lines (32 loc) · 1.59 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.Grid.ColumnDefinitions
winrt property

Microsoft.UI.Xaml.Controls.Grid.ColumnDefinitions

-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 objects defined on this instance of Grid.

-remarks

-examples

The following example creates a Grid with two columns by using ColumnDefinitions. You can do this using the new succinct syntax or the original syntax - both are accurate and produce the equivalent result. See examples of both below:

Using new succinct syntax:

[!code-xamlColumnDefNewSyntaxSample]

Using the original syntax:

[!code-xamlColumnDefOldSyntaxSample]

-see-also

RowDefinitions, Define layouts with XAML