Esempio n. 1
0
        public void Cancel()
        {
            _valueAnimator?.Cancel();
            _coreAnimation?.Cancel();
            AnimationCancel?.Invoke(this, EventArgs.Empty);

            ReleaseCoreAnimation();
        }
Esempio n. 2
0
        private void FinalizeAnimation()
        {
            if (this.Log().IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                this.Log().DebugFormat("Finalizing animation for GPU Float value animator on property {0}.", _bindingPath.LastOrDefault().PropertyName);
            }

            if (_valueAnimator.IsRunning)
            {
                _valueAnimator.Cancel();
            }

            AnimationEnd?.Invoke(this, EventArgs.Empty);
            ReleaseCoreAnimation();
        }