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.
Namespace: DevExpress.Xpf.LayoutControl
Assembly: DevExpress.Xpf.LayoutControl.v24.1.dll
NuGet Package: DevExpress.Wpf.LayoutControl
Declaration
Returns
Type | Description |
---|---|
Boolean | 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. |
Remarks
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).