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

Represents a double animation that transitions a specified property of a target element between a starting value and a target value. This class inherits from the OrientedAnimation and provides customization options for the animation duration, easing, and direction.

Definition

Constructors

C#
public RadDoubleAnimation()

Properties

The name of the property that should be animated.

C#
public string PropertyName { get; set; }

The starting value for the animation.

C#
public double StartValue { get; set; }

The target value for the animation.

C#
public double TargetValue { get; set; }

Methods

Creates the animation.

C#
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters:controlFrameworkElement

The control for which the animation is needed.

targetFrameworkElement

The targeted element of the animation.

Returns:

Storyboard

The newly created animation.

Overrides: BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

Updates the animation.

C#
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

targetFrameworkElement

The targeted element of the animation.

argsobject[]

Overrides: BaseAnimation.UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Remarks:

Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.