Back to Devexpress

AccordionContentContainer.SizeMode Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontentcontainer-f5cf388e.md

latest3.2 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(AccordionContentContainerSizeMode.Fixed)]
[DXCategory("Behavior")]
public AccordionContentContainerSizeMode SizeMode { get; set; }
vb
<DefaultValue(AccordionContentContainerSizeMode.Fixed)>
<DXCategory("Behavior")>
Public Property SizeMode As AccordionContentContainerSizeMode

Property Value

TypeDefaultDescription
AccordionContentContainerSizeModeFixed

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

|

Available values:

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

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

MaximumSize

MinimumSize

AccordionContentContainer Class

AccordionContentContainer Members

DevExpress.XtraBars.Navigation Namespace