skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class AnimationValueCalculator

Abstract base class for calculating animated property values during animation sequences. Provides framework for interpolating between start and end values with easing support.

Inheritance
System.Object
AnimationValueCalculator
AnimationValueBoolCalculator
AnimationValueColorCalculator
AnimationValueDoubleCalculator
AnimationValueFloatCalculator
AnimationValueFontCalculator
AnimationValueIntCalculator
AnimationValuePaddingCalculator
AnimationValuePointCalculator
AnimationValuePointFCalculator
AnimationValueRectangleCalculator
AnimationValueSizeCalculator
AnimationValueSizeFCalculator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public abstract class AnimationValueCalculator

Constructors

AnimationValueCalculator()

Declaration
protected AnimationValueCalculator()

Properties

AssociatedType

Gets the type associated with this animation calculator.

Declaration
public abstract Type AssociatedType { get; }
Property Value
System.Type

The type that this calculator can animate.

Methods

CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)

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

Declaration
public abstract object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object startValue

The starting value of the animation.

System.Object endValue

The ending value of the animation.

System.Object currValue

The current value of the animation.

System.Object step

The animation step value.

System.Int32 currFrameNum

The current frame number.

System.Int32 totalFrameNum

The total number of frames.

EasingCalculator calc

The easing calculator to apply.

Returns
System.Object

The calculated animated value for the current frame.

CalculateAnimationEndValue(Object, Object, Int32)

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

Declaration
public abstract object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)
Parameters
System.Object animationStartValue

System.Object step

System.Int32 numFrames

Returns
System.Object

CalculateAnimationStep(Object, Object, Int32)

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

Declaration
public abstract object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object animationStartValue

System.Object animationEndValue

System.Int32 numFrames

Returns
System.Object

CalculateDoubleEndValue(Double, Double, Int32)

Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames)
Parameters
System.Double animationStartValue

System.Double animationStep

System.Int32 numFrames

Returns
System.Double

CalculateDoubleEndValue(Double, Double, Int32, Double, Double)

Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames, double minValue, double maxValue)
Parameters
System.Double animationStartValue

System.Double animationStep

System.Int32 numFrames

System.Double minValue

System.Double maxValue

Returns
System.Double

CalculateDoubleStep(Double, Double, Double, Double, Double)

Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, double numFrames, double minValue, double maxValue)
Parameters
System.Double animationStartValue

System.Double animationEndValue

System.Double numFrames

System.Double minValue

System.Double maxValue

Returns
System.Double

CalculateDoubleStep(Double, Double, Int32)

Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, int numFrames)
Parameters
System.Double animationStartValue

System.Double animationEndValue

System.Int32 numFrames

Returns
System.Double

CalculateFloatEndValue(Single, Single, Int32)

Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames)
Parameters
System.Single animationStartValue

System.Single animationStep

System.Int32 numFrames

Returns
System.Single

CalculateFloatEndValue(Single, Single, Int32, Single, Single)

Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames, float minValue, float maxValue)
Parameters
System.Single animationStartValue

System.Single animationStep

System.Int32 numFrames

System.Single minValue

System.Single maxValue

Returns
System.Single

CalculateFloatStep(Single, Single, Int32)

Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, int numFrames)
Parameters
System.Single animationStartValue

System.Single animationEndValue

System.Int32 numFrames

Returns
System.Single

CalculateFloatStep(Single, Single, Single, Single, Single)

Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, float numFrames, float minValue, float maxValue)
Parameters
System.Single animationStartValue

System.Single animationEndValue

System.Single numFrames

System.Single minValue

System.Single maxValue

Returns
System.Single

CalculateIntEndValue(Int32, Int32, Int32)

Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames)
Parameters
System.Int32 animationStartValue

System.Int32 animationStep

System.Int32 numFrames

Returns
System.Int32

CalculateIntEndValue(Int32, Int32, Int32, Int32, Int32)

Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames, int minValue, int maxValue)
Parameters
System.Int32 animationStartValue

System.Int32 animationStep

System.Int32 numFrames

System.Int32 minValue

System.Int32 maxValue

Returns
System.Int32

CalculateIntStep(Int32, Int32, Int32)

Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames)
Parameters
System.Int32 animationStartValue

System.Int32 animationEndValue

System.Int32 numFrames

Returns
System.Int32

CalculateIntStep(Int32, Int32, Int32, Int32, Int32)

Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames, int minValue, int maxValue)
Parameters
System.Int32 animationStartValue

System.Int32 animationEndValue

System.Int32 numFrames

System.Int32 minValue

System.Int32 maxValue

Returns
System.Int32

CalculateInversedStep(Object)

Calculates the inverse of the specified animation step.

Declaration
public abstract object CalculateInversedStep(object step)
Parameters
System.Object step

The animation step to invert.

Returns
System.Object

The inverted animation step.

ConvertAnimationStepToString(Object)

Converts an animation step value to its string representation for serialization.

Declaration
public virtual string ConvertAnimationStepToString(object value)
Parameters
System.Object value

The animation step value to convert.

Returns
System.String

The string representation of the animation step.

ConvertToAnimationStepFromString(String)

Converts a string to an animation value.

Declaration
public virtual object ConvertToAnimationStepFromString(string value)
Parameters
System.String value

Returns
System.Object

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.