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> 86return Duration.Forever; 113return Duration.Forever;
System\Windows\DurationConverter.cs (2)
59return Duration.Forever; 111else if (duration == Duration.Forever)
System\Windows\InterOp\D3DImage.cs (2)
224LockImpl(Duration.Forever); 592if (timeout == Duration.Forever)
System\Windows\Media\Animation\Clock.cs (9)
97_resolvedDuration = Duration.Forever; 1250return Duration.Forever; 2169Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2414Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2442Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic."); 2451_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 2492else if (_currentDuration == Duration.Forever) 2578postFillDuration = Duration.Forever; 3214else if (syncClockDuration == Duration.Forever)
System\Windows\Media\Animation\ClockGroup.cs (2)
354if (childEndOfActivePeriod == Duration.Forever) 359return Duration.Forever;
System\Windows\Media\Animation\ParallelTimeline.cs (2)
103if (childEndOfActivePeriod == Duration.Forever) 108return Duration.Forever;
System\Windows\Media\Animation\TimeManager.cs (1)
66ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
209bool locked = TryLock(Duration.Forever); 232else 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" };