Grid.RowDefinitions Propiedad

Definición

Obtiene una lista de objetos RowDefinition definidos en esta instancia de Grid.

public:
 property RowDefinitionCollection ^ RowDefinitions { RowDefinitionCollection ^ get(); };
RowDefinitionCollection RowDefinitions();
public RowDefinitionCollection RowDefinitions { get; }
var rowDefinitionCollection = grid.rowDefinitions;
Public ReadOnly Property RowDefinitions As RowDefinitionCollection
<Grid>
  <Grid.RowDefinitions>
    oneOrMoreRowDefinitions
  </Grid.RowDefinitions>
</Grid>

Valor de propiedad

Lista de objetos RowDefinition definidos en esta instancia de Grid.

Ejemplos

En el ejemplo siguiente se crea una cuadrícula con tres filas. El alto de la primera fila se establece en el valor Auto, que distribuye el alto uniformemente en función del tamaño del contenido que se encuentra dentro de esa fila. El alto de la segunda fila y la tercera fila se establecen en 2* y * respectivamente. La segunda fila obtiene 2/3 del espacio restante y la tercera fila obtiene 1/3.

<Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="2*" />
    <RowDefinition Height="*"/>
</Grid.RowDefinitions>
  • Estrella (*) : tardará el espacio restante cuando se llene Auto y el tamaño fijo.

Se aplica a

Consulte también