Skip to main content

RowDefinition Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Holds a row definitions for a Avalonia.Controls.Grid.

public class RowDefinition

Inheritance: object -> AvaloniaObject -> DefinitionBase -> RowDefinition

Constructors

NameDescription
RowDefinition (3 overloads)Initializes a new instance of the Avalonia.Controls.RowDefinition class.

RowDefinition overloads

RowDefinition Constructor

Initializes a new instance of the Avalonia.Controls.RowDefinition class.

public RowDefinition()

RowDefinition Constructor

Initializes a new instance of the Avalonia.Controls.RowDefinition class.

public RowDefinition(Avalonia.Controls.GridLength height)
Parameters

height Avalonia.Controls.GridLength

The height of the column.

RowDefinition Constructor

Initializes a new instance of the Avalonia.Controls.RowDefinition class.

public RowDefinition(double value, Avalonia.Controls.GridUnitType type)
Parameters

value double

The height of the row.

type Avalonia.Controls.GridUnitType

The height unit of the column.

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
ActualHeightGets the actual calculated height of the row.
HeightGets or sets the height of the row.
MaxHeightGets or sets the maximum height of the row in DIPs.
MinHeightGets or sets the minimum height of the row in DIPs.
SharedSizeGroupSharedSizeGroup property. Inherited from DefinitionBase.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

ActualHeight Property

Gets the actual calculated height of the row.

public double ActualHeight { get; set; }

Height Property

Gets or sets the height of the row.

public Avalonia.Controls.GridLength Height { get; set; }

MaxHeight Property

Gets or sets the maximum height of the row in DIPs.

public double MaxHeight { get; set; }

MinHeight Property

Gets or sets the minimum height of the row in DIPs.

public double MinHeight { get; set; }

Fields

NameDescription
HeightPropertyDefines the Avalonia.Controls.RowDefinition.Height property.
MaxHeightPropertyDefines the Avalonia.Controls.RowDefinition.MaxHeight property.
MinHeightPropertyDefines the Avalonia.Controls.RowDefinition.MinHeight property.
SharedSizeGroupPropertyShared size group property marks column / row definition as belonging to a group "Foo" or "Bar". Inherited from DefinitionBase.

HeightProperty Field

Defines the Avalonia.Controls.RowDefinition.Height property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> HeightProperty

MaxHeightProperty Field

Defines the Avalonia.Controls.RowDefinition.MaxHeight property.

public Avalonia.StyledProperty<double> MaxHeightProperty

MinHeightProperty Field

Defines the Avalonia.Controls.RowDefinition.MinHeight property.

public Avalonia.StyledProperty<double> MinHeightProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.