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

Provides standard easing function implementations for smooth animation transitions. Supports various easing types including linear, quadratic, cubic, and bounce effects.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class StandardEasingCalculator : EasingCalculator

Inheritance: objectEasingCalculatorStandardEasingCalculator

Constructors

Initializes a new instance of the StandardEasingCalculator class.

C#
public StandardEasingCalculator()

Initializes a new instance of the StandardEasingCalculator class with the specified easing type.

C#
public StandardEasingCalculator(RadEasingType easingType)
Parameters:easingTypeRadEasingType

The type of easing function to use.

Properties

Gets or sets the type of easing function to apply.

C#
public RadEasingType EasingType { get; set; }
Property Value:

The easing type that determines the animation curve.

Methods

Calculates the current double value using easing interpolation.

C#
public override double CalculateCurrentValue(double initialValue, double endValue, int currentFrame, int numFrames)
Parameters:initialValuedouble

The starting double value.

endValuedouble

The ending double value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

double

The calculated double value for the current frame.

Overrides: EasingCalculator.CalculateCurrentValue(double, double, int, int)

Calculates the current float value using easing interpolation.

C#
public override float CalculateCurrentValue(float initialValue, float endValue, int currentFrame, int numFrames)
Parameters:initialValuefloat

The starting float value.

endValuefloat

The ending float value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

float

The calculated float value for the current frame.

Overrides: EasingCalculator.CalculateCurrentValue(float, float, int, int)

Calculates the current integer value using easing interpolation.

C#
public override int CalculateCurrentValue(int initialValue, int endValue, int currentFrame, int numFrames)
Parameters:initialValueint

The starting integer value.

endValueint

The ending integer value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

int

The calculated integer value for the current frame.

Overrides: EasingCalculator.CalculateCurrentValue(int, int, int, int)