Class
BaseAnimation

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

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public abstract class BaseAnimation : RadAnimation

Inheritance: objectRadAnimationBaseAnimation

Derived Classes: MoveAnimationOrientedAnimationResizeAnimationRevealAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.SpeedRatio

Constructors

BaseAnimation()

Initializes a new instance of the BaseAnimation class.

Declaration

cs-api-definition
protected BaseAnimation()

Properties

Duration

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

Declaration

cs-api-definition
public TimeSpan Duration { get; set; }

Property Value

TimeSpan

Easing

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

Declaration

cs-api-definition
public IEasingFunction Easing { get; set; }

Property Value

IEasingFunction

TargetElementName

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

Declaration

cs-api-definition
public string TargetElementName { get; set; }

Property Value

string

Methods

CreateAnimation(FrameworkElement)

Creates the slide animation.

Declaration

cs-api-definition
public override sealed Storyboard CreateAnimation(FrameworkElement control)

Parameters

control

FrameworkElement

The control for which the animation is needed.

Returns

Storyboard

The newly created animation.

Overrides RadAnimation.CreateAnimation(FrameworkElement)

CreateAnimationOverride(FrameworkElement, FrameworkElement)

Creates the animation.

Declaration

cs-api-definition
protected abstract Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)

Parameters

control

FrameworkElement

The control for which the animation is needed.

target

FrameworkElement

The targeted element of the animation.

Returns

Storyboard

The newly created animation.

UpdateAnimation(FrameworkElement, Storyboard, params object[])

Updates the slide animation.

Declaration

cs-api-definition
public override sealed void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

args

object[]

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.

UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Updates the animation.

Declaration

cs-api-definition
protected abstract void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

target

FrameworkElement

The targeted element of the animation.

args

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.