BaseAnimation
Base class for all animation classes that have easing and targeted element.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public abstract class BaseAnimation : RadAnimation
Inheritance: objectRadAnimationBaseAnimation
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the BaseAnimation class.
protected BaseAnimation()
Properties
Gets or sets a value that describes the duration of the animation.
public TimeSpan Duration { get; set; }
Easing
IEasingFunction
Gets or sets a value describing the easing function to be used for the animation.
public IEasingFunction Easing { get; set; }
Gets or sets the name of the animated object, part of the ControlTemplate of the control.
public string TargetElementName { get; set; }
Methods
CreateAnimation(FrameworkElement)
Storyboard
Creates the slide animation.
public override sealed Storyboard CreateAnimation(FrameworkElement control)
The control for which the animation is needed.
Returns:Storyboard
The newly created animation.
Overrides:
Creates the animation.
protected abstract Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
The control for which the animation is needed.
targetFrameworkElementThe targeted element of the animation.
Returns:Storyboard
The newly created animation.
Updates the slide animation.
public override sealed 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[]Overrides:
Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.
Updates the animation.
protected abstract void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
The control for which the animation needs to be updated.
storyboardStoryboardStoryboard that needs to be updated.
targetFrameworkElementThe targeted element of the animation.
argsobject[]Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.