System\Windows\Duration.cs (42)
52public static implicit operator Duration(TimeSpan timeSpan)
68public static Duration operator +(Duration t1, Duration t2)
80return Duration.Forever;
85return Duration.Automatic;
96public static Duration operator -(Duration t1, Duration t2)
107return Duration.Forever;
119return Duration.Automatic;
130public static bool operator ==(Duration t1, Duration t2)
142public static bool operator !=(Duration t1, Duration t2)
156public static bool operator >(Duration t1, Duration t2)
190public static bool operator >=(Duration t1, Duration t2)
217public static bool operator <(Duration t1, Duration t2)
251public static bool operator <=(Duration t1, Duration t2)
286public static int Compare(Duration t1, Duration t2)
325public static Duration Plus(Duration duration)
335public static Duration operator +(Duration duration)
360public static Duration Automatic
364Duration duration = new Duration();
375public static Duration Forever
379Duration duration = new Duration();
416public Duration Add(Duration duration)
432else if (value is Duration)
434return Equals((Duration)value);
447public bool Equals(Duration duration)
472public static bool Equals(Duration t1, Duration t2)
498public Duration Subtract(Duration duration)
System\Windows\Media\Animation\Clock.cs (37)
92if (_resolvedDuration == Duration.Automatic)
98_resolvedDuration = Duration.Forever;
311public Duration NaturalDuration
684Duration fillDuration, Duration period,
692TimeSpan beginTime, TimeSpan endTime, Duration period,
744internal virtual Duration CurrentDuration
746get { return Duration.Automatic; }
1224internal Duration EndOfActivePeriod
1232return Duration.Automatic;
1251return Duration.Forever;
1390internal Duration ResolvedDuration
1396Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic.");
1944Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2171Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2341Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2416Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2434Duration duration = NaturalDuration;
2436if (duration != Duration.Automatic)
2444Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2451if (_currentDuration == Duration.Automatic)
2453_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration
2477Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic.");
2478Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2494else if (_currentDuration == Duration.Forever)
2576Duration postFillDuration; // This is Zero when we have no fill zone
2580postFillDuration = Duration.Forever;
2833Duration postFillDuration)
3209Duration syncClockDuration = _syncData.SyncClockResolvedDuration;
3216else if (syncClockDuration == Duration.Forever)
3223Debug.Assert(syncClockDuration == Duration.Automatic);
3324Duration syncDuration = _syncData.SyncClockResolvedDuration;
4009internal Duration SyncClockResolvedDuration
4087private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates
4455internal Duration _resolvedDuration;
4465internal Duration _currentDuration;
System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
853internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio,
982internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio)
1028TimeSpan beginTime, TimeSpan endTime, Duration period,
1151Duration fillDuration, Duration period,