3 writes to _resolvedDuration
PresentationCore (3)
System\Windows\Media\Animation\Clock.cs (3)
89
_resolvedDuration
= _timeline.Duration;
97
_resolvedDuration
= Duration.Forever;
2436
_resolvedDuration
= duration;
20 references to _resolvedDuration
PresentationCore (20)
System\Windows\Media\Animation\Clock.cs (20)
91
if (
_resolvedDuration
== Duration.Automatic)
104
_currentDuration =
_resolvedDuration
;
606
if (!
_resolvedDuration
.HasTimeSpan ||
_resolvedDuration
.TimeSpan > TimeSpan.Zero)
1395
Debug.Assert(
_resolvedDuration
!= Duration.Automatic, "_resolvedDuration should never be set to Automatic.");
1397
return
_resolvedDuration
;
2074
optimizedOffsetFromBegin = MultiplyTimeSpan(
_resolvedDuration
.TimeSpan, scalingFactor);
2090
newIteration = (int)(offsetFromBegin.Ticks /
_resolvedDuration
.TimeSpan.Ticks); // Iteration count starting from 0
2191
Debug.Assert(
_resolvedDuration
.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration
2207
localProgress = TimeSpan.FromTicks(offsetOnLaterIterations %
_resolvedDuration
.TimeSpan.Ticks);
2208
iterationIncrement = 1 + (int)(offsetOnLaterIterations /
_resolvedDuration
.TimeSpan.Ticks);
2214
_currentIterationBeginTime += _currentDuration.TimeSpan + MultiplyTimeSpan(
_resolvedDuration
.TimeSpan, iterationIncrement - 1);
2222
_currentIterationBeginTime -=
_resolvedDuration
.TimeSpan;
2442
Debug.Assert(
_resolvedDuration
== Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2475
Debug.Assert(
_resolvedDuration
!= Duration.Automatic, "_resolvedDuration should never be Automatic.");
2499
Debug.Assert(_currentDuration ==
_resolvedDuration
, "For clocks which cannot grow, _currentDuration must equal _resolvedDuration.");
2511
Debug.Assert(
_resolvedDuration
.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan.");
2533
+ ((double)
_resolvedDuration
.TimeSpan.Ticks) * (presentAndFutureIterations - 1);
3410
current._currentDuration = current.
_resolvedDuration
; // Revert currentDuration back to default size
4007
_syncClockResolvedDuration = _syncClock.
_resolvedDuration
;