5 writes to _currentDuration
PresentationCore (5)
System\Windows\Media\Animation\Clock.cs (5)
105_currentDuration = _resolvedDuration; 2438_currentDuration = duration; // If CurrentDuration is different, we update it later in this method 2449_currentDuration = CurrentDuration; 2452_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 3411current._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."); 1958if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 1960if (_currentDuration.TimeSpan == TimeSpan.Zero) // We must be post-filling if we have gotten here 2090localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.TimeSpan.Ticks); 2110localProgress = _currentDuration.TimeSpan; 2129localProgress = _currentDuration.TimeSpan - localProgress; 2146timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.Abs(parentSpeed)); 2150TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.TimeSpan, 1.0 - _timeline.DecelerationRatio); 2155TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.TimeSpan, _timeline.AccelerationRatio); 2170Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2193Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2198if (offsetFromBegin < _currentDuration.TimeSpan) // We fall within the same iteration as during last tick 2206long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.TimeSpan).Ticks; 2215_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(_resolvedDuration.TimeSpan, iterationIncrement - 1); 2227_currentIterationBeginTime -= _currentDuration.TimeSpan; 2340Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2342if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2344Debug.Assert(_currentDuration.TimeSpan > TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0"); 2354double durationInTicks = (double)_currentDuration.TimeSpan.Ticks; 2415Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2450if (_currentDuration == Duration.Automatic) 2477Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2482if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2493else if (_currentDuration == Duration.Forever) 2499Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2500Debug.Assert(_currentDuration == _resolvedDuration, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration."); 2508effectiveDuration = MultiplyTimeSpan(_currentDuration.TimeSpan, scalingFactor); 2513Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2529presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) * presentAndFutureIterations; 2533presentAndFutureDuration = ((double)_currentDuration.TimeSpan.Ticks) // Current iteration; below is the future iteration length 2811_currentDuration, _appliedSpeedRatio, 2846relativeBeginTime, _currentDuration, _appliedSpeedRatio, 2856relativeBeginTime, _currentDuration, _appliedSpeedRatio)) 2868postFillDuration, _currentDuration, _appliedSpeedRatio,