Esempio n. 1
0
        protected void OnAnimationStarted(AnimationStatusEventArgs e)
        {
            //notify the animated element for operation start
            e.Element.OnAnimationStarted(this);

            if (AnimationStarted != null)
            {
                AnimationStarted(this, e);
            }
        }
        protected virtual void OnAnimationStarted(AnimationStatusEventArgs e)
        {
            if (e.Object != null)
            {
                int num = (int)e.Object.OnAnimationStarted(this);
            }
            AnimationStartedEventHandler animationStarted = this.AnimationStarted;

            if (animationStarted == null)
            {
                return;
            }
            animationStarted((object)this, e);
        }
        protected internal virtual void OnAnimationFinished(AnimationStatusEventArgs e)
        {
            if (e.Object != null)
            {
                int num = (int)e.Object.OnAnimationFinished(this);
            }
            AnimationFinishedEventHandler animationFinished = this.AnimationFinished;

            if (animationFinished != null)
            {
                animationFinished((object)this, e);
            }
            if (!(e.Object.ValuesAnimators[(object)this.GetHashCode()] is ElementValuesAnimator))
            {
                return;
            }
            e.Object.ValuesAnimators.Remove((object)this.GetHashCode());
        }