Class
ExpandCollapseAnimation

Animation for Expand/Collapse behavior.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class ExpandCollapseAnimation : RadAnimation

Inheritance: objectRadAnimationExpandCollapseAnimation

Derived Classes: ExpanderExpandCollapseAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.SpeedRatio

Constructors

ExpandCollapseAnimation()

Initializes a new instance of the ExpandCollapseAnimation class.

Declaration

cs-api-definition
public ExpandCollapseAnimation()

Properties

Direction

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

Declaration

cs-api-definition
public AnimationDirection Direction { get; set; }

Property Value

AnimationDirection

Orientation

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

Declaration

cs-api-definition
public Orientation Orientation { get; set; }

Property Value

Orientation

TargetElementName

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

Declaration

cs-api-definition
public string TargetElementName { get; set; }

Property Value

string

Methods

CreateAnimation(FrameworkElement)

Creates the Expander animation.

Declaration

cs-api-definition
public override Storyboard CreateAnimation(FrameworkElement control)

Parameters

control

FrameworkElement

The control for which the animation is needed.

Returns

Storyboard

The newly created animation.

Overrides RadAnimation.CreateAnimation(FrameworkElement)

GetEasing()

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

Declaration

cs-api-definition
protected virtual IEasingFunction GetEasing()

Returns

IEasingFunction

IsVertical(FrameworkElement)

Indicates whether the animation is vertical.

Declaration

cs-api-definition
protected virtual bool IsVertical(FrameworkElement control)

Parameters

control

FrameworkElement

The target control.

Returns

bool

UpdateAnimation(FrameworkElement, Storyboard, params object[])

Updates the ExpanderAnimation.

Declaration

cs-api-definition
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

args

object[]

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

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