3 writes to _resolvedDuration
PresentationCore (3)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (3)
105
_resolvedDuration
= _timeline.Duration;
113
_resolvedDuration
= Duration.Forever;
2454
_resolvedDuration
= duration;
20 references to _resolvedDuration
PresentationCore (20)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (20)
107
if (
_resolvedDuration
== Duration.Automatic)
120
_currentDuration =
_resolvedDuration
;
622
if (!
_resolvedDuration
.HasTimeSpan ||
_resolvedDuration
.TimeSpan > TimeSpan.Zero)
1412
Debug.Assert(
_resolvedDuration
!= Duration.Automatic, "_resolvedDuration should never be set to Automatic.");
1414
return
_resolvedDuration
;
2092
optimizedOffsetFromBegin = MultiplyTimeSpan(
_resolvedDuration
.TimeSpan, scalingFactor);
2108
newIteration = (int)(offsetFromBegin.Ticks /
_resolvedDuration
.TimeSpan.Ticks); // Iteration count starting from 0
2209
Debug.Assert(
_resolvedDuration
.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration
2225
localProgress = TimeSpan.FromTicks(offsetOnLaterIterations %
_resolvedDuration
.TimeSpan.Ticks);
2226
iterationIncrement = 1 + (int)(offsetOnLaterIterations /
_resolvedDuration
.TimeSpan.Ticks);
2232
_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(
_resolvedDuration
.TimeSpan, iterationIncrement - 1);
2240
_currentIterationBeginTime -=
_resolvedDuration
.TimeSpan;
2460
Debug.Assert(
_resolvedDuration
== Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2493
Debug.Assert(
_resolvedDuration
!= Duration.Automatic, "_resolvedDuration should never be Automatic.");
2517
Debug.Assert(_currentDuration ==
_resolvedDuration
, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration.");
2529
Debug.Assert(
_resolvedDuration
.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan.");
2551
+ ((double)
_resolvedDuration
.TimeSpan.Ticks) * (presentAndFutureIterations - 1);
3433
current._currentDuration = current.
_resolvedDuration
; // Revert currentDuration back to default size
4037
_syncClockResolvedDuration = _syncClock.
_resolvedDuration
;