Skip to main content

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