In This Article

AnimatedExpander

The AnimatedExpander is a regular Expander that provides optional animated expansion functionality. The animation consists of crossfade and slide behavior.

The AnimatedExpander class has these important members:

Member Description

CanMeasureCollapsedContent Property

Gets or sets whether the expander will use the width measurement of collapsed content when calculating its own width. The default value is true.

When true, a consistent width will be maintained when collapsed. When false, the expander will load faster (if collapsed) since less measuring is taking place.

CollapseDuration Property

Gets or sets the Duration of the collapse animation. The default value is 150 milliseconds.

ExpandDirection Property

Gets or sets the ExpandDirection of the expand animation. The default value is ExpandDirection.Down.

ExpandDuration Property

Gets or sets the Duration of the expand animation. The default value is 150 milliseconds.

HeaderContextMenu Property

Gets or sets the context menu used for the header.

HeaderCornerRadius Property

Gets or sets the corner radius used by the header.

HeaderPadding Property

Gets or sets the Thickness of the padding around header content.

IsAutoCollapseOnBlurEnabled Property

Gets or sets whether the expander will auto-collapse when focus leaves it. The default value is false.

IsAutoExpandOnFocusEnabled Property

Gets or sets whether the expander will auto-expand when focus enters it. The default value is false.

IsAutoFocusOnExpandEnabled Property

Gets or sets whether focus will attempt to be set in the content of the expander following the completion of the expansion animation. The default value is false.

The AnimatedExpanderDecorator decorator is used in the template for the AnimatedExpander to provide the actual animation behavior.