26 references to Forever
PresentationCore (24)
System\Windows\Duration.cs (4)
34
/// Private constructor, server for creation of <see cref="Duration.Automatic"/> and <see cref="Duration.
Forever
"/> only.
36
/// <param name="durationType">Only <see cref="Duration.Automatic"/> and <see cref="Duration.
Forever
"/> values are permitted.</param>
87
return Duration.
Forever
;
114
return Duration.
Forever
;
System\Windows\DurationConverter.cs (2)
59
return Duration.
Forever
;
111
else if (duration == Duration.
Forever
)
System\Windows\InterOp\D3DImage.cs (2)
225
LockImpl(Duration.
Forever
);
593
if (timeout == Duration.
Forever
)
System\Windows\Media\Animation\Clock.cs (9)
98
_resolvedDuration = Duration.
Forever
;
1251
return Duration.
Forever
;
2170
Debug.Assert(_currentDuration == Duration.
Forever
, "_currentDuration has an invalid enum value.");
2415
Debug.Assert(_currentDuration == Duration.
Forever
, "_currentDuration has an invalid enum value.");
2443
Debug.Assert(_resolvedDuration == Duration.
Forever
, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2452
_currentDuration = Duration.
Forever
; // We treat Automatic as unresolved current duration
2493
else if (_currentDuration == Duration.
Forever
)
2579
postFillDuration = Duration.
Forever
;
3215
else if (syncClockDuration == Duration.
Forever
)
System\Windows\Media\Animation\ClockGroup.cs (2)
355
if (childEndOfActivePeriod == Duration.
Forever
)
360
return Duration.
Forever
;
System\Windows\Media\Animation\ParallelTimeline.cs (2)
104
if (childEndOfActivePeriod == Duration.
Forever
)
109
return Duration.
Forever
;
System\Windows\Media\Animation\TimeManager.cs (1)
67
ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.
Forever
);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
210
bool locked = TryLock(Duration.
Forever
);
233
else if (timeout == Duration.
Forever
)
PresentationCore.Tests (2)
System\Windows\DurationConverter.Tests.cs (2)
58
yield return new object?[] { "Forever", null, Duration.
Forever
, false };
105
yield return new object?[] { Duration.
Forever
, null, " Forever" };