Class
ElementValuesAnimator

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class ElementValuesAnimator : IDisposable

Inheritance: objectElementValuesAnimator

Implements: IDisposable

Constructors

ElementValuesAnimator(RadObject, AnimatedPropertySetting)

Initializes a new instance of the ElementValuesAnimator class.

Declaration

cs-api-definition
public ElementValuesAnimator(RadObject element, AnimatedPropertySetting setting)

Parameters

element

RadObject

The RadObject element to animate.

setting

AnimatedPropertySetting

The animation settings for the property.

Properties

IsRunning

Gets a value indicating whether the animation is currently running.

Declaration

cs-api-definition
public bool IsRunning { get; }

Property Value

bool

true if the animation is running; otherwise, false.

Value

Gets or sets the current animated value.

Declaration

cs-api-definition
public object Value { get; set; }

Property Value

object

The current value of the animated property.

Waiting

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

Declaration

cs-api-definition
public bool Waiting { get; set; }

Property Value

bool

true if the animator is waiting; otherwise, false.

Methods

Dispose()

Releases all resources used by the ElementValuesAnimator.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Initialize(RadObject, object)

Initializes the animator with the element and initial value.

Declaration

cs-api-definition
public void Initialize(RadObject element, object initialValue)

Parameters

element

RadObject

The element to animate.

initialValue

object

The initial value of the property.

Pause(RadObject)

Pauses the animation temporarily.

Declaration

cs-api-definition
public void Pause(RadObject element)

Parameters

element

RadObject

The element to pause animation for.

Resume(RadObject)

Resumes a paused animation.

Declaration

cs-api-definition
public void Resume(RadObject element)

Parameters

element

RadObject

The element to resume animation for.

Start(RadObject)

Starts the animation for the specified element.

Declaration

cs-api-definition
public void Start(RadObject element)

Parameters

element

RadObject

The element to animate.

Stop()

Stops the animation and applies the final value.

Declaration

cs-api-definition
public void Stop()

UpdateValue()

Updates the animated property value for the current frame.

Declaration

cs-api-definition
protected virtual void UpdateValue()