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

Provides elastic animation capabilities.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class ElasticDoubleAnimation : DoubleAnimationBase

Inheritance: objectElasticDoubleAnimation

Constructors

C#
public ElasticDoubleAnimation()

Fields

FromProperty

DependencyProperty

Identifies the From dependency property.

C#
public static readonly DependencyProperty FromProperty

LimitToEndValueProperty

DependencyProperty

Identifies the LimitToEndValue dependency property.

C#
public static readonly DependencyProperty LimitToEndValueProperty

OscillationsProperty

DependencyProperty

Identifies the Oscillations dependency property.

C#
public static readonly DependencyProperty OscillationsProperty

SpringinessProperty

DependencyProperty

Identifies the Springiness dependency property.

C#
public static readonly DependencyProperty SpringinessProperty

ToProperty

DependencyProperty

Identifies the To dependency property.

C#
public static readonly DependencyProperty ToProperty

Properties

Gets or sets the start value of the animated property.

C#
public double? From { get; set; }
Property Value:

From.

Gets or sets a value indicating whether oscillations exceed the end value.

C#
public bool LimitToEndValue { get; set; }

Gets or sets the oscillations count.

C#
public double Oscillations { get; set; }
Property Value:

The oscillations.

Gets or sets the springiness.

C#
public double Springiness { get; set; }
Property Value:

The springiness.

Gets or sets the end value of the animated property.

C#
public double? To { get; set; }
Property Value:

To.

Methods

When implemented in a derived class, creates a new instance of the Freezable derived class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Calculates a value that represents the current value of the property being animated, as determined by the host animation.

C#
protected override double GetCurrentValueCore(double defaultOriginValue, double defaultDestinationValue, AnimationClock animationClock)
Parameters:defaultOriginValuedouble

The suggested origin value, used if the animation does not have its own explicitly set start value.

defaultDestinationValuedouble

The suggested destination value, used if the animation does not have its own explicitly set end value.

animationClockAnimationClock

An AnimationClock that generates the or used by the host animation.

Returns:

double

The calculated value of the property, as determined by the current animation.