OptionsView.AutoSizeInLayoutControl Property
Gets or sets how a LayoutControl’s size is changed when it is positioned within another LayoutControl.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(AutoSizeModes.UseMinSizeAndGrow)]
public AutoSizeModes AutoSizeInLayoutControl { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Auto |
Use |
A value that specifies how the Layout |
Available values:
Name | Description |
---|---|
Resize |
The embedded Layout |
Use |
The embedded Layout |
Use |
The embedded Layout |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Auto |
---|---|
Layout |
|
#Remarks
In UseMinSizeAndGrow mode, the embedded LayoutControl’s minimum size is limited; it is calculated based on the size constraints of child layout items and can be obtained by reading the root group’s LayoutGroup.MinSize property. The LayoutControl maximum size is unlimited.
If the AutoSizeInLayoutControl property is set to ResizeToMinSize, the embedded LayoutControl’s size is fixed and is equal to its minimum size.
If you choose UseMinAndMaxSize mode, the embedded LayoutControl’s size can vary between the minimum and maximum sizes, which are returned by the root group’s LayoutGroup.MinSize and LayoutGroup.MaxSize properties, respectively.