private OnStop ( bool completed, ProceduralAnimationStopState stopState ) : void | ||
completed | bool | |
stopState | ProceduralAnimationStopState | |
return | void |
/// <internalonly /> protected override bool ProgressCore(bool startRepetition, bool startReverse, DateTime timeStamp) { ProceduralAnimation animation = _animations[_current]; if (_nextAnimation) { if ((_successionDelay.TotalMilliseconds != 0) && ((_successionTimeStamp + _successionDelay) > timeStamp)) { return(false); } _nextAnimation = false; animation.OnPlay(IsReversed); } bool completed = animation.OnProgress(timeStamp); if (completed) { animation.OnStop(/* completed */ true, ProceduralAnimationStopState.Complete); if (IsReversed == false) { _current++; } else { _current--; } _nextAnimation = true; _successionTimeStamp = timeStamp; } return(completed && ((_current == _animations.Length) || (_current == -1))); }
/// <internalonly /> protected override void StopCore(bool completed, ProceduralAnimationStopState stopState) { if (completed == false) { ProceduralAnimation animation = _animations[_current]; animation.OnStop(/* completed */ false, stopState); } }
private void StopCore(ProceduralAnimation animation, ProceduralAnimationStopState stopState) { animation.OnStop(/* completed */ false, stopState); _activeAnimations.Remove(animation); if (_activeAnimations.Count == 0) { _sb.Stop(); } }
private void StopCore(ProceduralAnimation animation, ProceduralAnimationStopState stopState) { animation.OnStop(/* completed */ false, stopState); _activeAnimations.Remove(animation); if (_activeAnimations.Count == 0) { _sb.Stop(); } }