public void InitAnimations() { RotateAnimator rotateAnimator = new RotateAnimator(4, RotateAnimator.eDirection.Right, TimeSpan.Zero); FadeOutAnimator fadeOutAnimator = new FadeOutAnimator(TimeSpan.FromSeconds(2)); BlinkAnimator blinkAnimator = new BlinkAnimator("BlinkAnimator", TimeSpan.FromSeconds(0.2), TimeSpan.FromSeconds(2)); fadeOutAnimator.Finished += fadeOutAnimator_Finished; this.Animations.Add(fadeOutAnimator); this.Animations.Add(rotateAnimator); this.Animations.Add(blinkAnimator); this.Animations.Enabled = true; this.Animations["FadeOutAnimator"].Pause(); this.Animations["RotateAnimator"].Pause(); this.Animations["BlinkAnimator"].Pause(); }
public void InitAnimations() { ShrinkAnimator shrinkAnimator = new ShrinkAnimator(TimeSpan.FromSeconds(2)); BlinkAnimator blinkAnimator = new BlinkAnimator(TimeSpan.FromSeconds(0.3), TimeSpan.FromSeconds(2)); FadeOutAnimator fadeoutAnimator = new FadeOutAnimator(TimeSpan.FromSeconds(2)); fadeoutAnimator.Finished += fadeoutAnimator_Finished; this.Animations.Add(shrinkAnimator); this.Animations.Add(blinkAnimator); this.Animations.Add(fadeoutAnimator); this.Animations.Pause(); }