Skip to main content
All docs
V24.1

AccordionContentContainer.SizeMode Property

Gets or sets whether the current container is stretched vertically to occupy the Accordion Control’s available empty space.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(AccordionContentContainerSizeMode.Fixed)]
[DXCategory("Behavior")]
public AccordionContentContainerSizeMode SizeMode { get; set; }

Property Value

Type Default Description
AccordionContentContainerSizeMode Fixed

A value that specifies whether the current container is stretched vertically to occupy the Accordion Control’s empty space.

Available values:

Name Description
Fixed

A content container has a fixed height, specified by the AccordionContentContainer.Height property.

Stretch

A content container is stretched vertically to occupy the control’s empty space. You can use the AccordionContentContainer.MaximumSize and AccordionContentContainer.MinimumSize properties to limit the container’s height.

Remarks

Set the SizeMode property to AccordionContentContainerSizeMode.Stretch to stretch the container vertically, so it occupies the Accordion Control’s available empty space.

AccordionControlElement - Stretch

If two or more containers have their SizeMode properties set to Stretch, they have equal shares of the available empty space.

The AccordionContentContainer.MinimumSize and AccordionContentContainer.MaximumSize properties allow you to specify the minimum and maximum height for a container in Stretch mode.

See Also