Skip to main content
All docs
V24.2

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

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.2.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