5 writes to _currentDuration
PresentationCore (5)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (5)
120_currentDuration = _resolvedDuration; 2455_currentDuration = duration; // If CurrentDuration is different, we update it later in this method 2466_currentDuration = CurrentDuration; 2469_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 3433current._currentDuration = current._resolvedDuration; // Revert currentDuration back to default size
35 references to _currentDuration
PresentationCore (35)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (35)
1960Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 1975if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 1977if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 2107localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.TimeSpan.Ticks); 2127localProgress = _currentDuration.TimeSpan; 2146localProgress = _currentDuration.TimeSpan - localProgress; 2163timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.Abs(parentSpeed)); 2167TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.TimeSpan, 1.0 - _timeline.DecelerationRatio); 2172TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.TimeSpan, _timeline.AccelerationRatio); 2187Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2210Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2215if (offsetFromBegin < _currentDuration.TimeSpan) // We fall within the same iteration as during last tick 2223long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.TimeSpan).Ticks; 2232_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(_resolvedDuration.TimeSpan, iterationIncrement - 1); 2244_currentIterationBeginTime -= _currentDuration.TimeSpan; 2357Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2359if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2361Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2371double durationInTicks = (double)_currentDuration.TimeSpan.Ticks; 2432Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2467if (_currentDuration == Duration.Automatic) 2494Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2499if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2510else if (_currentDuration == Duration.Forever) 2516Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2517Debug.Assert(_currentDuration == _resolvedDuration, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration."); 2525effectiveDuration = MultiplyTimeSpan(_currentDuration.TimeSpan, scalingFactor); 2530Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2546presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) * presentAndFutureIterations; 2550presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) // Current iteration; below is the future iteration length 2827_currentDuration, _appliedSpeedRatio, 2862relativeBeginTime, _currentDuration, _appliedSpeedRatio, 2872relativeBeginTime, _currentDuration, _appliedSpeedRatio)) 2884postFillDuration, _currentDuration, _appliedSpeedRatio,