Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.54 KB

grid_rowdefinitions.md

File metadata and controls

45 lines (30 loc) · 1.54 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.Grid.RowDefinitions
winrt property

Windows.UI.Xaml.Controls.Grid.RowDefinitions

-description

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

-xaml-syntax

<Grid>
  <Grid.RowDefinitions>
    oneOrMoreRowDefinitions
  </Grid.RowDefinitions>
</Grid>

-xaml-values

oneOrMoreRowDefinitions
oneOrMoreRowDefinitionsOne or more RowDefinition elements. Each such RowDefinition becomes a placeholder representing a row in the final grid layout.
## -property-value A list of [RowDefinition](rowdefinition.md) objects defined on this instance of [Grid](grid.md).

-remarks

-examples

The following example creates a Grid with three rows. The Height of the first row is set to the value Auto, which distributes height evenly based on the size of the content that is within that row. The height of the second row and third row are set to 2* and * respectively. The second row gets 2/3 of the remaining space and the third row gets 1/3.

[!code-xamlRowDefinitions]

  • Star (*) : It will take the remaining space when Auto and fixed sized are filled.

-see-also

ColumnDefinitions, Define layouts with XAML