Animation |
The AnimationController type exposes the following members.
Name | Description | |
---|---|---|
AnimationNodes | Gets a list of AnimationNodeBase object that are animated by this AnimationController. | |
AnimationStartTime | Gets a DateTime that specifies the start time of the animation (when the StartAnimation(Boolean) or StartAnimation(Double, Boolean)method was called). If animation is not started a DateTime.MinValue is returned. | |
AutoRepeat | Gets or set if the animation should automatically repeat itself or not. Default value is false. | |
AutoReverse | Gets or sets if animation should go backwards when coming to the last frame or should it start from beginning. Default value is false. | |
AutoStopAnimation | Gets or sets if animation is automatically stopped (calling StopAnimation method) when the animation is completed. Animation can be completed only when AutoRepeat property is false. In case AutoRepeat and AutoReverse are false the animation is completed when the LastFrameNumber is reached; when AutoReverse is true, the animation is completed when the first frame is reached again (after reversing back from the last frame). The property is used only only when StartAnimation(Boolean) or StartAnimation(Double, Boolean) method is called without parameters or with subscribeToRenderingEvent parameter set to true. Default value is true. | |
CurrentFrameNumber | Gets the frame number where this animation controller currently is - the same as frameNumber parameter in the last call to GoToFrame(Double) method. | |
FirstFrameNumber | Gets the first defined frame number for this AnimationController. This number is calculated each time with going though all AnimationNodes. | |
FramesPerSecond | Gets or sets a double value that specifies for how many frames per second animation advances. This does not change the rendering but the speed of animation. The frame numbers are not related to rendering frames but are defined in the KeyFrameBase and derived objects. | |
IsAnimating | Gets a Boolean that specifies if animation is currently running (was started and is not paused). | |
IsAnimationPaused | Gets a Boolean that specifies if animation was started and and is currently paused. | |
IsAnimationStarted | Gets a Boolean that specifies if animation was started and is not yet stopped (also returns true if animation is paused). | |
LastFrameNumber | Gets the last defined frame number for this AnimationController. This number is calculated each time with going though all AnimationNodes. |