ClassBaseAnimation
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
BaseAnimation()
Initializes a new instance of the BaseAnimation class.
Declaration
protected BaseAnimation()
Properties
Duration
Gets or sets a value that describes the duration of the animation.
Easing
Gets or sets a value describing the easing function to be used for the animation.
Declaration
public IEasingFunction Easing { get; set; }
Property Value
IEasingFunction
TargetElementName
Gets or sets the name of the animated object, part of the ControlTemplate of the control.
Methods
CreateAnimation(FrameworkElement)
Creates the slide animation.
Declaration
public override sealed Storyboard CreateAnimation(FrameworkElement control)
Parameters
control
FrameworkElement
The control for which the animation is needed.
Returns
Storyboard
The newly created animation.
Overrides
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the animation.
Declaration
protected abstract Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters
control
FrameworkElement
The control for which the animation is needed.
target
FrameworkElement
The targeted element of the animation.
Returns
Storyboard
The newly created animation.
UpdateAnimation(FrameworkElement, Storyboard, params object[])
Updates the slide animation.
Declaration
public override sealed 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[]
Overrides
Remarks
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.
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])
Updates the animation.
Declaration
protected abstract void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters
control
FrameworkElement
The control for which the animation needs to be updated.
storyboard
Storyboard
Storyboard that needs to be updated.
target
FrameworkElement
The targeted element of the animation.
args
object[]
Remarks
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.