ExpandCollapseInfoEventArgs Class
Provides data for the DXExpander.GetExpandCollapseInfo event.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Remarks
The DXExpander.GetExpandCollapseInfo event fires when DXExpander is expanded or collapsed with the DXExpander.StretchChild property set to true (indicates that the control stretches its content when expanded). This event allows you to manually specify the DXExpander content size in the expanded state. Use the event parameter’s ExpandCollapseInfoEventArgs.Size property to do this.
Note that if the vertical animation is disabled (specified by the DXExpander.VerticalExpand property set to VerticalExpandMode.None), the Height component is ignored, and the height is defined by the expander content. Similarly, the Width component is ignored if the horizontal animation is disabled (the DXExpander.HorizontalExpand property is set to HorizontalExpandMode.None).
If the DXExpander.StretchChild property is set to false, indicating that the content slides when the control is expanded/collapsed, the DXExpander.GetExpandCollapseInfo event is not fired, and the content size is defined by the content.