Back to Devexpress

DXExpander.StretchChild Property

wpf-devexpress-dot-xpf-dot-core-dot-dxexpander-4afe1323.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool StretchChild { get; set; }
vb
Public Property StretchChild As Boolean

Property Value

TypeDescription
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

DXExpander Class

DXExpander Members

DevExpress.Xpf.Core Namespace