Class RadAnimation
Base class for dynamic control animations.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public abstract class RadAnimation
Constructors
RadAnimation()
Declaration
protected RadAnimation()
Properties
AnimationName
Gets or sets the name of the animation.
Declaration
public string AnimationName { get; set; }
Property Value
System.String
|
Remarks
This property is used by the NamedAnimationSelector to identify the correct animation to return.
It is not used outside the NamedAnimationSelector
RepeatBehavior
Gets or sets the value for the RepeatBehavior of the animation.
Declaration
public RepeatBehavior RepeatBehavior { get; set; }
Property Value
System.Windows.Media.Animation.RepeatBehavior
|
SpeedRatio
Gets or sets the value for the SpeedRatio of the Storyboard generated by this animation.
Declaration
public double SpeedRatio { get; set; }
Property Value
System.Double
|
Methods
CreateAnimation(FrameworkElement)
When overridden in a derived class this method is called when the animation for an instance of a control needs to be created.
Declaration
public abstract 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. |
UpdateAnimation(FrameworkElement, Storyboard, Object[])
When overridden in a derived class this method updates the animation before it is played.
Declaration
public virtual 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
A set of arguments used for animation creation. |
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.