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:
public class LoopingAnimatedPropertySetting : AnimatedPropertySetting, IPropertySetting
Inheritance: objectAnimatedPropertySettingLoopingAnimatedPropertySetting
Implements:
Inherited Members
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.
public LoopingAnimatedPropertySetting(RadProperty property, object startValue, object endValue, int interval, int firstPhaseNumFrames, RadEasingType firstPhaseAnimationType, int secondPhaseFrames, RadEasingType secondPhaseAnimationType)
The RadProperty to be animated.
startValueobjectThe starting value of the animation.
endValueobjectThe ending value of the animation.
intervalintThe interval between animation frames in milliseconds.
firstPhaseNumFramesintThe number of frames in the first animation phase.
firstPhaseAnimationTypeRadEasingTypeThe easing type used in the first animation phase.
secondPhaseFramesintThe number of frames in the second animation phase.
secondPhaseAnimationTypeRadEasingTypeThe easing type used in the second animation phase.
Properties
Gets or sets the easing type for the first phase of the looping animation.
public RadEasingType FirstPhaseEasingType { get; set; }
Gets or sets the number of frames for the first phase of the looping animation.
public int FirstPhaseNumFrames { get; set; }
Gets or sets the easing type for the second phase of the looping animation.
public RadEasingType SecondPhaseEasingType { get; set; }
Gets or sets the number of frames for the second phase of the looping animation.
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.
protected override void OnAnimationFinished(AnimationStatusEventArgs e)
Provides data for the animation status event.
Overrides:
Starts the looping animation.
Stops the looping animation.