New to Telerik UI for WPFStart a free 30-day trial

Animation for Expand/Collapse behavior.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class ExpandCollapseAnimation : RadAnimation

Inheritance: objectRadAnimationExpandCollapseAnimation

Derived Classes: ExpanderExpandCollapseAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.AutoReverseRadAnimation.SpeedRatio

Constructors

Initializes a new instance of the ExpandCollapseAnimation class.

C#
public ExpandCollapseAnimation()

Properties

Gets or sets a value indicating whether the direction of the animation.

C#
public AnimationDirection Direction { get; set; }

Orientation

Orientation

Gets or sets a value, describing the orientation of the animation.

C#
public Orientation Orientation { get; set; }

Gets or sets the name of the element that should be animated.

C#
public string TargetElementName { get; set; }

Methods

Creates the Expander animation.

C#
public override Storyboard CreateAnimation(FrameworkElement control)
Parameters:controlFrameworkElement

The control for which the animation is needed.

Returns:

Storyboard

The newly created animation.

Overrides: RadAnimation.CreateAnimation(FrameworkElement)

GetEasing()

IEasingFunction

Gets the easing function that would be used in the animation.

C#
protected virtual IEasingFunction GetEasing()
Returns:

IEasingFunction

Indicates whether the animation is vertical.

C#
protected virtual bool IsVertical(FrameworkElement control)
Parameters:controlFrameworkElement

The target control.

Returns:

bool

Updates the ExpanderAnimation.

C#
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

argsobject[]

Optional arguments that the animation needs, can be provided by the control.

Overrides: RadAnimation.UpdateAnimation(FrameworkElement, Storyboard, params object[])