Class ExpandCollapseAnimation
Animation for Expand/Collapse behavior.
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ExpandCollapseAnimation : RadAnimation
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
AnimationDirection
|
Orientation
Gets or sets a value, describing the orientation of the animation.
Declaration
public Orientation Orientation { get; set; }
Property Value
System.Windows.Controls.Orientation
|
TargetElementName
Gets or sets the name of the element that should be animated.
Declaration
public string TargetElementName { get; set; }
Property Value
System.String
|
Methods
CreateAnimation(FrameworkElement)
Creates the Expander animation.
Declaration
public override Storyboard CreateAnimation(FrameworkElement control)
Parameters
System.Windows.FrameworkElement
control
The control for which the animation is needed. |
Returns
System.Windows.Media.Animation.Storyboard
The newly created animation. |
Overrides
GetEasing()
Gets the easing function that would be used in the animation.
Declaration
protected virtual IEasingFunction GetEasing()
Returns
System.Windows.Media.Animation.IEasingFunction
|
IsVertical(FrameworkElement)
Indicates whether the animation is vertical.
Declaration
protected virtual bool IsVertical(FrameworkElement control)
Parameters
System.Windows.FrameworkElement
control
The target control. |
Returns
System.Boolean
|
UpdateAnimation(FrameworkElement, Storyboard, Object[])
Updates the ExpanderAnimation.
Declaration
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
Parameters
System.Windows.FrameworkElement
control
The control for which the animation needs to be updated. |
System.Windows.Media.Animation.Storyboard
storyboard
Storyboard that needs to be updated. |
System.Object[]
args
Optional arguments that the animation needs, can be provided by the control. |