Skip to main content

LayoutControl.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 its 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