5 writes to _currentDuration
PresentationCore (5)
System\Windows\Media\Animation\Clock.cs (5)
104_currentDuration = _resolvedDuration; 2437_currentDuration = duration; // If CurrentDuration is different, we update it later in this method 2448_currentDuration = CurrentDuration; 2451_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 3410current._currentDuration = current._resolvedDuration; // Revert currentDuration back to default size
35 references to _currentDuration
PresentationCore (35)
System\Windows\Media\Animation\Clock.cs (35)
1943Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 1957if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 1959if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 2089localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.TimeSpan.Ticks); 2109localProgress = _currentDuration.TimeSpan; 2128localProgress = _currentDuration.TimeSpan - localProgress; 2145timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.Abs(parentSpeed)); 2149TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.TimeSpan, 1.0 - _timeline.DecelerationRatio); 2154TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.TimeSpan, _timeline.AccelerationRatio); 2169Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2192Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2197if (offsetFromBegin < _currentDuration.TimeSpan) // We fall within the same iteration as during last tick 2205long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.TimeSpan).Ticks; 2214_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(_resolvedDuration.TimeSpan, iterationIncrement - 1); 2226_currentIterationBeginTime -= _currentDuration.TimeSpan; 2339Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2341if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2343Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2353double durationInTicks = (double)_currentDuration.TimeSpan.Ticks; 2414Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2449if (_currentDuration == Duration.Automatic) 2476Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2481if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2492else if (_currentDuration == Duration.Forever) 2498Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2499Debug.Assert(_currentDuration == _resolvedDuration, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration."); 2507effectiveDuration = MultiplyTimeSpan(_currentDuration.TimeSpan, scalingFactor); 2512Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2528presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) * presentAndFutureIterations; 2532presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) // Current iteration; below is the future iteration length 2810_currentDuration, _appliedSpeedRatio, 2845relativeBeginTime, _currentDuration, _appliedSpeedRatio, 2855relativeBeginTime, _currentDuration, _appliedSpeedRatio)) 2867postFillDuration, _currentDuration, _appliedSpeedRatio,