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 Expand
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
System.
|
TargetElementName
Gets or sets the name of the element that should be animated.
Declaration
public string TargetElementName { get; set; }
Property Value
System.
|
Methods
CreateAnimation(FrameworkElement)
Creates the Expander animation.
Declaration
public override Storyboard CreateAnimation(FrameworkElement control)
Parameters
System. The control for which the animation is needed. |
Returns
System. The newly created animation. |
Overrides
GetEasing()
Gets the easing function that would be used in the animation.
Declaration
protected virtual IEasingFunction GetEasing()
Returns
System.
|
IsVertical(FrameworkElement)
Indicates whether the animation is vertical.
Declaration
protected virtual bool IsVertical(FrameworkElement control)
Parameters
System. The target control. |
Returns
System.
|
UpdateAnimation(FrameworkElement, Storyboard, Object[])
Updates the ExpanderAnimation.
Declaration
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
Parameters
System. The control for which the animation needs to be updated. |
System. Storyboard that needs to be updated. |
System. Optional arguments that the animation needs, can be provided by the control. |