MaxHeight Property
Collapse the table of content
Expand the table of content

RowDefinition.MaxHeight Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that represents the maximum height of a RowDefinition.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double MaxHeight { get; set; }
<RowDefinition MaxHeight="double"/>

Property Value

Type: System.Double
A Double that represents the maximum height.

Dependency property identifier field: MaxHeightProperty

When you use multiple height settings in a RowDefinition, the MinHeight value takes precedence over the MaxHeight value, which in turn takes precedence over the Height value.

When you add or remove rows or columns, the ActualWidth for all ColumnDefinition elements and the ActualHeight of all RowDefinition elements become zero until Measure is called.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft