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

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

Definition

Constructors

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

C#
public LoopingAnimatedPropertySetting(RadProperty property, object startValue, object endValue, int interval, int firstPhaseNumFrames, RadEasingType firstPhaseAnimationType, int secondPhaseFrames, RadEasingType secondPhaseAnimationType)
Parameters:propertyRadProperty

The RadProperty to be animated.

startValueobject

The starting value of the animation.

endValueobject

The ending value of the animation.

intervalint

The interval between animation frames in milliseconds.

firstPhaseNumFramesint

The number of frames in the first animation phase.

firstPhaseAnimationTypeRadEasingType

The easing type used in the first animation phase.

secondPhaseFramesint

The number of frames in the second animation phase.

secondPhaseAnimationTypeRadEasingType

The easing type used in the second animation phase.

Properties

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

C#
public RadEasingType FirstPhaseEasingType { get; set; }

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

C#
public int FirstPhaseNumFrames { get; set; }

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

C#
public RadEasingType SecondPhaseEasingType { get; set; }

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

C#
public int SecondPhaseNumFrames { get; set; }

Methods

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.

C#
protected override void OnAnimationFinished(AnimationStatusEventArgs e)
Parameters:eAnimationStatusEventArgs

Provides data for the animation status event.

Overrides: AnimatedPropertySetting.OnAnimationFinished(AnimationStatusEventArgs)

Starts the looping animation.

C#
public void StartLoop(RadObject element)
Parameters:elementRadObject

Stops the looping animation.

C#
public void StopLoop(RadObject element)
Parameters:elementRadObject