Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DockLayoutControl.UseDesiredWidthAsMaxWidth Attached Property

Gets or sets whether an item’s maximum width 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.2.dll

NuGet Package: DevExpress.Wpf.LayoutControl

#Declaration

#Returns

Type Description
Boolean

true if an item’s maximum width is set to a value sufficient to display the item and its content in it’s entirety; otherwise, false.

#Remarks

If the UseDesiredWidthAsMaxWidth property is enabled, the maximum width is calculated once, when required. The maximum width is not recalculated when the item’s content is changed. To recalculate the item’s maximum width, set the UseDesiredWidthAsMaxWidth property to False, and then back to True.

A custom value assigned to an item’s MaxWidth property overrides the automatically calculated maximum width (the width calculated when the UseDesiredWidthAsMaxWidth option is set to True).

See Also