Xamarin.Forms Guides | Samples

Xamarin.Forms.RowDefinition Class

An IDefinition that defines properties for a row in a Grid.

See Also: RowDefinition


public sealed class RowDefinition : BindableObject, IDefinition


XAML for Xamarin.Forms supports the following property for the RowDefinition class:


"*" or "Auto" to indicate the corresponding GridUnitType enumeration values, or a number to indicate an absolute height.

App developers can specify GridUnitType values for the ColumnDefinition.Height property in XAML. This is typically done inside tags for the Grid.RowDefinitions collection property. The following example demonstrates setting three row heights to each of the three valid GridUnitType values:

XAML Example

    <RowDefinition Height="Auto" />
    <RowDefinition Height="*" />
    <RowDefinition Height="100" />


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,,,,

The members of Xamarin.Forms.RowDefinition are listed below.

See Also: BindableObject

Public Constructors

Creates a new RowDefinition object with default values.

Public Fields

static readonly
HeightPropertyBindableProperty. Backing store for the RowDefinition.Height property.

Public Properties

HeightGridLength. Gets or sets the height of the row.

Public Events

SizeChangedEvent that is raised when the size of the row is changed.