New to Telerik UI for WinFormsStart a free 30-day trial

Calculates double values for the property animation.

Definition

Constructors

C#
public AnimationValueDoubleCalculator()

Properties

Gets the type associated with this animation calculator.

C#
public override Type AssociatedType { get; }
Property Value:

The type that this calculator can animate.

Overrides: AnimationValueCalculator.AssociatedType

Methods

Calculates the animated value for the current frame using interpolation and easing.

C#
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters:startValueobject

The starting value of the animation.

endValueobject

The ending value of the animation.

currValueobject

The current value of the animation.

stepobject

The animation step value.

currFrameNumint

The current frame number.

totalFrameNumint

The total number of frames.

calcEasingCalculator

The easing calculator to apply.

Returns:

object

The calculated animated value for the current frame.

Overrides: AnimationValueCalculator.CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the animation end value from start value, step, and the total number of frames.

C#
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters:animationStartValueobjectanimationStepobjectnumFramesintReturns:

object

Overrides: AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

Calculates the animation step from start value, end value, and the total number of frames.

C#
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters:animationStartValueobjectanimationEndValueobjectnumFramesintReturns:

object

Overrides: AnimationValueCalculator.CalculateAnimationStep(object, object, int)

Calculates the inverse of the specified animation step.

C#
public override object CalculateInversedStep(object step)
Parameters:stepobject

The animation step to invert.

Returns:

object

The inverted animation step.

Overrides: AnimationValueCalculator.CalculateInversedStep(object)