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

ControlMaxSizeCalcMode Enum

Contains values that specify how default maximum size constraints are calculated for controls that implement the IXtraResizableControl interface.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public enum ControlMaxSizeCalcMode

#Members

Name Description
UseControlMaximumSize

The default maximum width and height are specified by the Control.MaximumSize.Width and Control.MaximumSize.Height values, respectively.

CombineControlMaximumSizeAndIXtraResizableMaxSize

The default maximum width is calculated for a control as the maximum of two values: Control.MaximumSize.Width and IXtraResizableControl.MaxSize.Width.

The default maximum height is calculated for a control as the maximum of two values: Control.MaximumSize.Height and IXtraResizableControl.MaxSize.Height.

UseControlMaximumSizeIfNotZero

The default maximum width is specified by the Control.MaximumSize.Width property if it is not set to 0; otherwise, the default maximum width is specified by the IXtraResizableControl.MaxSize.Width property.

The default maximum height is specified by the Control.MaximumSize.Height property if it is not set to 0; otherwise, the default maximum height is specified by the IXtraResizableControl.MaxSize.Height property.

#Related API Members

The following properties accept/return ControlMaxSizeCalcMode values:

#Remarks

Use the OptionsView.ControlDefaultMaxSizeCalcMode property to specify how default maximum size constraints are calculated for controls within the Layout Control.

Note

If the resulting maximum width/height is 0, the control can grow without limits in the horizontal/vertical direction.

See Also