System\Windows\Duration.cs (42)
56public static implicit operator Duration(TimeSpan timeSpan)
72public static Duration operator +(Duration t1, Duration t2)
84return Duration.Forever;
89return Duration.Automatic;
100public static Duration operator -(Duration t1, Duration t2)
111return Duration.Forever;
123return Duration.Automatic;
134public static bool operator ==(Duration t1, Duration t2)
146public static bool operator !=(Duration t1, Duration t2)
160public static bool operator >(Duration t1, Duration t2)
194public static bool operator >=(Duration t1, Duration t2)
221public static bool operator <(Duration t1, Duration t2)
255public static bool operator <=(Duration t1, Duration t2)
290public static int Compare(Duration t1, Duration t2)
329public static Duration Plus(Duration duration)
339public static Duration operator +(Duration duration)
364public static Duration Automatic
368Duration duration = new Duration();
379public static Duration Forever
383Duration duration = new Duration();
420public Duration Add(Duration duration)
436else if (value is Duration)
438return Equals((Duration)value);
451public bool Equals(Duration duration)
476public static bool Equals(Duration t1, Duration t2)
502public Duration Subtract(Duration duration)
System\Windows\Media\Animation\Clock.cs (37)
105if (_resolvedDuration == Duration.Automatic)
111_resolvedDuration = Duration.Forever;
324public Duration NaturalDuration
697Duration fillDuration, Duration period,
705TimeSpan beginTime, TimeSpan endTime, Duration period,
757internal virtual Duration CurrentDuration
759get { return Duration.Automatic; }
1237internal Duration EndOfActivePeriod
1245return Duration.Automatic;
1264return Duration.Forever;
1403internal Duration ResolvedDuration
1409Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic.");
1957Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2184Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2354Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2429Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2447Duration duration = NaturalDuration;
2449if (duration != Duration.Automatic)
2457Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2464if (_currentDuration == Duration.Automatic)
2466_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration
2490Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic.");
2491Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2507else if (_currentDuration == Duration.Forever)
2589Duration postFillDuration; // This is Zero when we have no fill zone
2593postFillDuration = Duration.Forever;
2846Duration postFillDuration)
3222Duration syncClockDuration = _syncData.SyncClockResolvedDuration;
3229else if (syncClockDuration == Duration.Forever)
3236Debug.Assert(syncClockDuration == Duration.Automatic);
3337Duration syncDuration = _syncData.SyncClockResolvedDuration;
4022internal Duration SyncClockResolvedDuration
4100private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates
4468internal Duration _resolvedDuration;
4478internal Duration _currentDuration;
System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
858internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio,
987internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio)
1033TimeSpan beginTime, TimeSpan endTime, Duration period,
1156Duration fillDuration, Duration period,