ClassExpandCollapseAnimation
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
ExpandCollapseAnimation()
Initializes a new instance of the ExpandCollapseAnimation class.
Declaration
public ExpandCollapseAnimation()
Properties
Direction
Gets or sets a value indicating whether the direction of the animation.
Declaration
public AnimationDirection Direction { get; set; }
Property Value
Orientation
Gets or sets a value, describing the orientation of the animation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Orientation
TargetElementName
Gets or sets the name of the element that should be animated.
Methods
CreateAnimation(FrameworkElement)
Creates the Expander animation.
Declaration
public override Storyboard CreateAnimation(FrameworkElement control)
Parameters
control
FrameworkElement
The control for which the animation is needed.
Returns
Storyboard
The newly created animation.
Overrides
GetEasing()
Gets the easing function that would be used in the animation.
Declaration
protected virtual IEasingFunction GetEasing()
Returns
IEasingFunction
IsVertical(FrameworkElement)
Indicates whether the animation is vertical.
Declaration
protected virtual bool IsVertical(FrameworkElement control)
Parameters
control
FrameworkElement
The target control.
Returns
UpdateAnimation(FrameworkElement, Storyboard, params object[])
Updates the ExpanderAnimation.
Declaration
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