void ClearAnimation() { if (_animator == null) { return; } _animator.AnimationEnd -= AnimationOnAnimationEnd; _animator.Cancel(); _animator.Dispose(); _animator = null; }
private void ClearAnimation() { if (animation == null) { return; } animation.AnimationEnd -= AnimationOnAnimationEnd; animation.Cancel(); animation.Dispose(); animation = null; }
private void ClearAnimation() { if (null == animator) { return; } animator.AnimationEnd -= AnimationOnAnimationEnd; animator.Cancel(); animator.Dispose(); animator = null; }
private void AnimationOnAnimationEnd(object sender, EventArgs eventArgs) { if (IsDisposed) { return; } if (!_rippleOnScreen && !IsDisposed) { Container.RemoveView(_viewOverlay); } try { _animator.AnimationEnd -= AnimationOnAnimationEnd; _animator.Dispose(); } catch { } }
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; }