Class BaseAnimation
Base class for all animation classes that have easing and targeted element.
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public abstract class BaseAnimation : RadAnimation
Constructors
BaseAnimation()
Properties
Duration
Gets or sets a value that describes the duration of the animation.
Declaration
public TimeSpan Duration { get; set; }
Property Value
System.TimeSpan
|
Easing
Gets or sets a value describing the easing function to be used for the animation.
Declaration
public IEasingFunction Easing { get; set; }
Property Value
System.Windows.Media.Animation.IEasingFunction
|
TargetElementName
Gets or sets the name of the animated object, part of the ControlTemplate of the control.
Declaration
public string TargetElementName { get; set; }
Property Value
System.String
|
Methods
CreateAnimation(FrameworkElement)
Creates the slide animation.
Declaration
public override sealed 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
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the animation.
Declaration
protected abstract Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters
System.Windows.FrameworkElement
control
The control for which the animation is needed. |
System.Windows.FrameworkElement
target
The targeted element of the animation. |
Returns
System.Windows.Media.Animation.Storyboard
The newly created animation. |
UpdateAnimation(FrameworkElement, Storyboard, Object[])
Updates the slide animation.
Declaration
public override sealed 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
|
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, Object[])
Updates the animation.
Declaration
protected abstract void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, 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.Windows.FrameworkElement
target
The targeted element of the animation. |
System.Object[]
args
|
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.