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

DXExpander.StretchChild Property

Gets or sets whether the DXExpander‘s content is expanded and collapsed with a stretching animation effect. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool StretchChild { get; set; }

#Property Value

Type Description
Boolean

true if the DXExpander‘s content is stretched; otherwise, false. The default state is false.

#Remarks

If the StretchChild property is set to false, the DXExpander‘s content is expanded and collapsed with a sliding animation effect.

To enable stretching the DXExpander‘s content, the maximum control’s width (for the horizontal animation) and height (for the vertical animation) must be specified. This can be done via the MaxWidth and MaxHeight properties, respectively. The content’s width and height (for the horizontal and vertical animation, respectively) must not be specified.

To learn more, see DXExpander.

See Also