26 references to Forever
PresentationCore (24)
System\Windows\Duration.cs (4)
33
/// Private constructor, server for creation of <see cref="Duration.Automatic"/> and <see cref="Duration.
Forever
"/> only.
35
/// <param name="durationType">Only <see cref="Duration.Automatic"/> and <see cref="Duration.
Forever
"/> values are permitted.</param>
86
return Duration.
Forever
;
113
return Duration.
Forever
;
System\Windows\DurationConverter.cs (2)
59
return Duration.
Forever
;
111
else if (duration == Duration.
Forever
)
System\Windows\InterOp\D3DImage.cs (2)
224
LockImpl(Duration.
Forever
);
592
if (timeout == Duration.
Forever
)
System\Windows\Media\Animation\Clock.cs (9)
97
_resolvedDuration = Duration.
Forever
;
1250
return Duration.
Forever
;
2169
Debug.Assert(_currentDuration == Duration.
Forever
, "_currentDuration has an invalid enum value.");
2414
Debug.Assert(_currentDuration == Duration.
Forever
, "_currentDuration has an invalid enum value.");
2442
Debug.Assert(_resolvedDuration == Duration.
Forever
, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2451
_currentDuration = Duration.
Forever
; // We treat Automatic as unresolved current duration
2492
else if (_currentDuration == Duration.
Forever
)
2578
postFillDuration = Duration.
Forever
;
3214
else if (syncClockDuration == Duration.
Forever
)
System\Windows\Media\Animation\ClockGroup.cs (2)
354
if (childEndOfActivePeriod == Duration.
Forever
)
359
return Duration.
Forever
;
System\Windows\Media\Animation\ParallelTimeline.cs (2)
103
if (childEndOfActivePeriod == Duration.
Forever
)
108
return Duration.
Forever
;
System\Windows\Media\Animation\TimeManager.cs (1)
66
ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.
Forever
);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
209
bool locked = TryLock(Duration.
Forever
);
232
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" };