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.
|
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.
|
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.
|
Methods
CreateAnimation(FrameworkElement)
Creates the slide animation.
Declaration
public override sealed Storyboard CreateAnimation(FrameworkElement control)
Parameters
System. The control for which the animation is needed. |
Returns
System. The newly created animation. |
Overrides
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the animation.
Declaration
protected abstract Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters
System. The control for which the animation is needed. |
System. The targeted element of the animation. |
Returns
System. 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. The control for which the animation needs to be updated. |
System. Storyboard that needs to be updated. |
System.
|
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. The control for which the animation needs to be updated. |
System. Storyboard that needs to be updated. |
System. The targeted element of the animation. |
System.
|
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.