示例#1
0
 void ClearAnimation()
 {
     if (_animator == null)
     {
         return;
     }
     _animator.AnimationEnd -= AnimationOnAnimationEnd;
     _animator.Cancel();
     _animator.Dispose();
     _animator = null;
 }
示例#2
0
 private void ClearAnimation()
 {
     if (animation == null)
     {
         return;
     }
     animation.AnimationEnd -= AnimationOnAnimationEnd;
     animation.Cancel();
     animation.Dispose();
     animation = null;
 }
示例#3
0
        private void ClearAnimation()
        {
            if (null == animator)
            {
                return;
            }

            animator.AnimationEnd -= AnimationOnAnimationEnd;
            animator.Cancel();
            animator.Dispose();

            animator = null;
        }
示例#4
0
        private void AnimationOnAnimationEnd(object sender, EventArgs eventArgs)
        {
            if (IsDisposed)
            {
                return;
            }

            if (!_rippleOnScreen && !IsDisposed)
            {
                Container.RemoveView(_viewOverlay);
            }
            try {
                _animator.AnimationEnd -= AnimationOnAnimationEnd;
                _animator.Dispose();
            }
            catch {
            }
        }
示例#5
0
        void _fadeOut_AnimationEnd(object sender, EventArgs e)
        {
            this._Token.Cancel();
            this._Token.Dispose();
            this._Token = null;

            _Layout.Touch         -= LayoutTouched;
            _Layout.Visibility     = ViewStates.Gone;
            _fadeOut.AnimationEnd -= _fadeOut_AnimationEnd;

            _Set.Dispose();
            _Set = null;

            _fadeOut.RemoveAllListeners();
            _fadeOut.Dispose();
            _fadeOut = null;

            _Layout.Dispose();
            _Layout = null;
        }