public void InitAnimations() { PulseAnimator pulseAnimator = new PulseAnimator("pulse", TimeSpan.Zero, 1.03f, 2); this.Animations.Add(pulseAnimator); this.Animations.Enabled = true; this.Animations["pulse"].Pause(); }
protected override void InitAnimations() { PulseAnimator pulseAnimator = new PulseAnimator(TimeSpan.Zero, 1.15f, 0.7f); this.Animations.Add(pulseAnimator); (this.Animations["PulseAnimation"] as PulseAnimator).Enabled = false; this.Animations.Enabled = true; }
private void createPulseAnimator() { TimeSpan animationLength = TimeSpan.Zero; PulseAnimator pulseAnimator = new PulseAnimator(animationLength, k_PulseAnimatorTargetScale, k_PulseAnimatorPulsesPerSecond); this.Animations.Add(pulseAnimator); this.HighlightChanged += Animations_HighlightChanged; }
private void initAnimations() { PulseAnimator faderAnimator = new PulseAnimator(r_AnimationLenght, k_TargetScaleAnimation, k_PulsePerSecondAnimation); m_Animations.Add(faderAnimator); RotationOrigin = SourceRectangleCenter; if (m_ActiveItem) { m_Animations.Start(); } }