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

Base class for all animation classes that have easing and targeted element.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public abstract class BaseAnimation : RadAnimation

Inheritance: objectRadAnimationBaseAnimation

Derived Classes: MoveAnimationOrientedAnimationPulseOpacityAnimationResizeAnimationRevealAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.AutoReverseRadAnimation.SpeedRatio

Constructors

Initializes a new instance of the BaseAnimation class.

C#
protected BaseAnimation()

Properties

Gets or sets a value that describes the duration of the animation.

C#
public TimeSpan Duration { get; set; }

Easing

IEasingFunction

Gets or sets a value describing the easing function to be used for the animation.

C#
public IEasingFunction Easing { get; set; }

Gets or sets the name of the animated object, part of the ControlTemplate of the control.

C#
public string TargetElementName { get; set; }

Methods

Creates the slide animation.

C#
public override sealed Storyboard CreateAnimation(FrameworkElement control)
Parameters:controlFrameworkElement

The control for which the animation is needed.

Returns:

Storyboard

The newly created animation.

Overrides: RadAnimation.CreateAnimation(FrameworkElement)

Creates the animation.

C#
protected abstract 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.

Updates the slide animation.

C#
public override sealed void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

argsobject[]

Overrides: RadAnimation.UpdateAnimation(FrameworkElement, Storyboard, 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.

Updates the animation.

C#
protected abstract 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[]
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.