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

Animates element property values using configurable animation settings and easing functions.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class ElementValuesAnimator : IDisposable

Inheritance: objectElementValuesAnimator

Implements: IDisposable

Constructors

Initializes a new instance of the ElementValuesAnimator class.

C#
public ElementValuesAnimator(RadObject element, AnimatedPropertySetting setting)
Parameters:elementRadObject

The RadObject element to animate.

settingAnimatedPropertySetting

The animation settings for the property.

Properties

Gets a value indicating whether the animation is currently running.

C#
public bool IsRunning { get; }
Property Value:

true if the animation is running; otherwise, false.

Gets or sets the current animated value.

C#
public object Value { get; set; }
Property Value:

The current value of the animated property.

Gets or sets a value indicating whether the animator is waiting.

C#
public bool Waiting { get; set; }
Property Value:

true if the animator is waiting; otherwise, false.

Methods

Releases all resources used by the ElementValuesAnimator.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Initializes the animator with the element and initial value.

C#
public void Initialize(RadObject element, object initialValue)
Parameters:elementRadObject

The element to animate.

initialValueobject

The initial value of the property.

Pauses the animation temporarily.

C#
public void Pause(RadObject element)
Parameters:elementRadObject

The element to pause animation for.

Resumes a paused animation.

C#
public void Resume(RadObject element)
Parameters:elementRadObject

The element to resume animation for.

Starts the animation for the specified element.

C#
public void Start(RadObject element)
Parameters:elementRadObject

The element to animate.

Stops the animation and applies the final value.

C#
public void Stop()

Updates the animated property value for the current frame.

C#
protected virtual void UpdateValue()