Xamarin.Forms Guides | Samples

Xamarin.Forms.RowDefinition Class

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

See Also: RowDefinition

Syntax

public sealed class RowDefinition : BindableObject, IDefinition

Remarks

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

PropertyValue
Height

"*" 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

<Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="*" />
    <RowDefinition Height="100" />
</Grid.RowDefinitions>

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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.