Back to Devexpress

DockLayoutControl.UseDesiredHeightAsMaxHeight Attached Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-docklayoutcontrol-1171a9c6.md

latest1.9 KB
Original Source

DockLayoutControl.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.v25.2.dll

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

See GetUseDesiredHeightAsMaxHeight(UIElement) and SetUseDesiredHeightAsMaxHeight(UIElement, Boolean).

Returns

TypeDescription
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 ).

See Also

DockLayoutControl Class

DockLayoutControl Members

DevExpress.Xpf.LayoutControl Namespace