LayoutControl.UseDesiredHeightAsMaxHeight Attached Property
Gets or sets whether an item's maximum height is set to a value sufficient to display the item and its content in its entirety. This is an attached property.
true if an item's maximum height is set to a value sufficient to display the item and its content in its entirety; otherwise, false.
If the UseDesiredHeightAsMaxHeight property is enabled, the maximum height is calculated once, when required. The maximum height is not recalculated when the item's content is changed. To recalculate the item's maximum height, set the UseDesiredHeightAsMaxHeight property to False, and then back to True.
A custom value assigned to an item's MaxHeight property overrides the automatically calculated maximum height (the height calculated when the UseDesiredHeightAsMaxHeight option is set to True).