Class RadDoubleAnimation
A generic animation that can animate any double property by creating a DoubleAnimation.
Inherited Members
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public class RadDoubleAnimation : OrientedAnimation
Constructors
RadDoubleAnimation()
Declaration
public RadDoubleAnimation()
Properties
PropertyName
The name of the property that should be animated.
Declaration
public string PropertyName { get; set; }
Property Value
System.String
|
StartValue
The starting value for the animation.
Declaration
public double StartValue { get; set; }
Property Value
System.Double
|
TargetValue
The target value for the animation.
Declaration
public double TargetValue { get; set; }
Property Value
System.Double
|
Methods
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the animation.
Declaration
protected override 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. |
Overrides
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, Object[])
Updates the animation.
Declaration
protected override 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
|
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.