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> 87return Duration.Forever; 114return Duration.Forever;
System\Windows\DurationConverter.cs (2)
59return Duration.Forever; 111else if (duration == Duration.Forever)
System\Windows\InterOp\D3DImage.cs (2)
225LockImpl(Duration.Forever); 593if (timeout == Duration.Forever)
System\Windows\Media\Animation\Clock.cs (9)
98_resolvedDuration = Duration.Forever; 1251return Duration.Forever; 2170Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2415Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2443Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic."); 2452_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 2493else if (_currentDuration == Duration.Forever) 2579postFillDuration = Duration.Forever; 3215else if (syncClockDuration == Duration.Forever)
System\Windows\Media\Animation\ClockGroup.cs (2)
355if (childEndOfActivePeriod == Duration.Forever) 360return Duration.Forever;
System\Windows\Media\Animation\ParallelTimeline.cs (2)
104if (childEndOfActivePeriod == Duration.Forever) 109return Duration.Forever;
System\Windows\Media\Animation\TimeManager.cs (1)
67ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
210bool locked = TryLock(Duration.Forever); 233else if (timeout == Duration.Forever)
PresentationCore.Tests (2)
System\Windows\DurationConverter.Tests.cs (2)
58yield return new object?[] { "Forever", null, Duration.Forever, false }; 105yield return new object?[] { Duration.Forever, null, " Forever" };