Animation for Expand/Collapse behavior.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ExpandCollapseAnimation : RadAnimation
Inheritance: objectRadAnimationExpandCollapseAnimation
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the ExpandCollapseAnimation class.
public ExpandCollapseAnimation()
Properties
Gets or sets a value indicating whether the direction of the animation.
public AnimationDirection Direction { get; set; }
Orientation
Orientation
Gets or sets a value, describing the orientation of the animation.
public Orientation Orientation { get; set; }
Gets or sets the name of the element that should be animated.
public string TargetElementName { get; set; }
Methods
CreateAnimation(FrameworkElement)
Storyboard
Creates the Expander animation.
public override Storyboard CreateAnimation(FrameworkElement control)
The control for which the animation is needed.
Returns:Storyboard
The newly created animation.
Overrides:
GetEasing()
IEasingFunction
Gets the easing function that would be used in the animation.
protected virtual IEasingFunction GetEasing()
IEasingFunction
Indicates whether the animation is vertical.
protected virtual bool IsVertical(FrameworkElement control)
The target control.
Returns:Updates the ExpanderAnimation.
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
The control for which the animation needs to be updated.
storyboardStoryboardStoryboard that needs to be updated.
argsobject[]Optional arguments that the animation needs, can be provided by the control.
Overrides: