Class UiAnimation
A ui animation is a simple timed event that an Element in a UiSystem can use to play a visual or other type of animation. Ui animations use StepAnimator<TObject> as their underlying animation player. To use ui animations, you can use PlayAnimation(UiAnimation), or one of the built-in style properties like MouseEnterAnimation or MouseExitAnimation.
public class UiAnimation : StepAnimator<Element>, IGenericDataHolder
- Inheritance
-
UiAnimation
- Implements
- Inherited Members
Constructors
UiAnimation(params Step[])
Creates a new step animator with the given settings.
public UiAnimation(params StepAnimator<Element>.Step[] steps)
Parameters
stepsStep[]The steps to play.
UiAnimation(IList<Step>, bool)
Creates a new step animator with the given settings.
public UiAnimation(IList<StepAnimator<Element>.Step> steps, bool loop = false)
Parameters
stepsIList<StepAnimator<Element>.Step>The steps to play.
loopboolWhether the
stepsshould loop.
UiAnimation(double, AnimationFunction)
public UiAnimation(double seconds, StepAnimator<Element>.AnimationFunction function)
Parameters
secondsdoublefunctionStepAnimator<Element>.AnimationFunction