Property Value

The maximum height of the element, in device-independent units (1/96th inch per unit). The default value is PositiveInfinity. This value can be any value equal to or greater than 0.0. PositiveInfinity is also valid.

Remarks

This is one of three properties on FrameworkElement that specify height information. The other two are MinHeight and Height. If there is a conflict between these values, the order of application for actual height determination is first MinHeight must be honored, then MaxHeight, and finally if each of these are within bounds, Height.

The value restrictions on the Double value are enforced by a ValidateValueCallback mechanism. If you attempt to set an invalid value a run-time exception is thrown.

XAML Attribute Usage

<object MaxHeight="double"/>

-or-

<object MaxHeight ="qualifiedDouble"/>

XAML Values

String representation of a Double value equal to or greater than 0.0. This is interpreted as a device-independent unit (1/96th inch) measurement. Strings need not explicitly include decimal points. For instance a value of 1 is acceptable.