Class
LoopingAnimatedPropertySetting

Provides a property animation setting that supports looping animations with configurable easing types and frame counts for two animation phases.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class LoopingAnimatedPropertySetting : AnimatedPropertySetting, IPropertySetting

Inheritance: objectAnimatedPropertySettingLoopingAnimatedPropertySetting

Implements: IPropertySetting

Inherited Members AnimatedPropertySetting.IsStyleSettingAnimatedPropertySetting.Start(RadObject)AnimatedPropertySetting.Stop(RadObject)AnimatedPropertySetting.Cancel(RadObject)AnimatedPropertySetting.IsAnimating(RadObject)AnimatedPropertySetting.GetCurrentValue(RadObject)AnimatedPropertySetting.ApplyValue(RadObject)AnimatedPropertySetting.AppendValue(RadObject, RadProperty, object, object, int, int)AnimatedPropertySetting.Resume(RadObject)AnimatedPropertySetting.Pause(RadObject)AnimatedPropertySetting.UnapplyValue(RadObject)AnimatedPropertySetting.OnAnimationStarted(AnimationStatusEventArgs)AnimatedPropertySetting.PropertyAnimatedPropertySetting.StartValueAnimatedPropertySetting.EndValueAnimatedPropertySetting.MaxValueAnimatedPropertySetting.StepAnimatedPropertySetting.NumFramesAnimatedPropertySetting.IntervalAnimatedPropertySetting.ApplyDelayAnimatedPropertySetting.RandomDelayAnimatedPropertySetting.ApplyEasingTypeAnimatedPropertySetting.RemoveAfterApplyAnimatedPropertySetting.AnimationsEnabledAnimatedPropertySetting.AnimationFinishedAnimatedPropertySetting.AnimationStarted

Constructors

LoopingAnimatedPropertySetting(RadProperty, object, object, int, int, RadEasingType, int, RadEasingType)

Initializes a new instance of the LoopingAnimatedPropertySetting class with specified property, value range, animation intervals, frame counts, and easing types for two animation phases.

Declaration

cs-api-definition
public LoopingAnimatedPropertySetting(RadProperty property, object startValue, object endValue, int interval, int firstPhaseNumFrames, RadEasingType firstPhaseAnimationType, int secondPhaseFrames, RadEasingType secondPhaseAnimationType)

Parameters

property

RadProperty

The RadProperty to be animated.

startValue

object

The starting value of the animation.

endValue

object

The ending value of the animation.

interval

int

The interval between animation frames in milliseconds.

firstPhaseNumFrames

int

The number of frames in the first animation phase.

firstPhaseAnimationType

RadEasingType

The easing type used in the first animation phase.

secondPhaseFrames

int

The number of frames in the second animation phase.

secondPhaseAnimationType

RadEasingType

The easing type used in the second animation phase.

Properties

FirstPhaseEasingType

Gets or sets the easing type for the first phase of the looping animation.

Declaration

cs-api-definition
public RadEasingType FirstPhaseEasingType { get; set; }

Property Value

RadEasingType

FirstPhaseNumFrames

Gets or sets the number of frames for the first phase of the looping animation.

Declaration

cs-api-definition
public int FirstPhaseNumFrames { get; set; }

Property Value

int

SecondPhaseEasingType

Gets or sets the easing type for the second phase of the looping animation.

Declaration

cs-api-definition
public RadEasingType SecondPhaseEasingType { get; set; }

Property Value

RadEasingType

SecondPhaseNumFrames

Gets or sets the number of frames for the second phase of the looping animation.

Declaration

cs-api-definition
public int SecondPhaseNumFrames { get; set; }

Property Value

int

Methods

OnAnimationFinished(AnimationStatusEventArgs)

Handles the completion of an animation by swapping start and end values and continuing the loop if looping is enabled and a current element exists.

Declaration

cs-api-definition
protected override void OnAnimationFinished(AnimationStatusEventArgs e)

Parameters

e

AnimationStatusEventArgs

Provides data for the animation status event.

Overrides AnimatedPropertySetting.OnAnimationFinished(AnimationStatusEventArgs)

StartLoop(RadObject)

Starts the looping animation.

Declaration

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

Parameters

element

RadObject

StopLoop(RadObject)

Stops the looping animation.

Declaration

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

Parameters

element

RadObject