5 writes to _currentDuration
PresentationCore (5)
System\Windows\Media\Animation\Clock.cs (5)
105_currentDuration = _resolvedDuration; 2439_currentDuration = duration; // If CurrentDuration is different, we update it later in this method 2450_currentDuration = CurrentDuration; 2453_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 3412current._currentDuration = current._resolvedDuration; // Revert currentDuration back to default size
35 references to _currentDuration
PresentationCore (35)
System\Windows\Media\Animation\Clock.cs (35)
1944Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 1959if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 1961if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 2091localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.TimeSpan.Ticks); 2111localProgress = _currentDuration.TimeSpan; 2130localProgress = _currentDuration.TimeSpan - localProgress; 2147timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.Abs(parentSpeed)); 2151TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.TimeSpan, 1.0 - _timeline.DecelerationRatio); 2156TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.TimeSpan, _timeline.AccelerationRatio); 2171Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2194Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2199if (offsetFromBegin < _currentDuration.TimeSpan) // We fall within the same iteration as during last tick 2207long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.TimeSpan).Ticks; 2216_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(_resolvedDuration.TimeSpan, iterationIncrement - 1); 2228_currentIterationBeginTime -= _currentDuration.TimeSpan; 2341Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2343if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2345Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2355double durationInTicks = (double)_currentDuration.TimeSpan.Ticks; 2416Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2451if (_currentDuration == Duration.Automatic) 2478Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2483if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2494else if (_currentDuration == Duration.Forever) 2500Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2501Debug.Assert(_currentDuration == _resolvedDuration, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration."); 2509effectiveDuration = MultiplyTimeSpan(_currentDuration.TimeSpan, scalingFactor); 2514Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2530presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) * presentAndFutureIterations; 2534presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) // Current iteration; below is the future iteration length 2812_currentDuration, _appliedSpeedRatio, 2847relativeBeginTime, _currentDuration, _appliedSpeedRatio, 2857relativeBeginTime, _currentDuration, _appliedSpeedRatio)) 2869postFillDuration, _currentDuration, _appliedSpeedRatio,