Core\CSharp\System\Windows\Duration.cs (42)
58public static implicit operator Duration(TimeSpan timeSpan)
74public static Duration operator +(Duration t1, Duration t2)
86return Duration.Forever;
91return Duration.Automatic;
102public static Duration operator -(Duration t1, Duration t2)
113return Duration.Forever;
125return Duration.Automatic;
136public static bool operator ==(Duration t1, Duration t2)
148public static bool operator !=(Duration t1, Duration t2)
162public static bool operator >(Duration t1, Duration t2)
196public static bool operator >=(Duration t1, Duration t2)
223public static bool operator <(Duration t1, Duration t2)
257public static bool operator <=(Duration t1, Duration t2)
292public static int Compare(Duration t1, Duration t2)
332public static Duration Plus(Duration duration)
342public static Duration operator +(Duration duration)
367public static Duration Automatic
371Duration duration = new Duration();
382public static Duration Forever
386Duration duration = new Duration();
423public Duration Add(Duration duration)
439else if (value is Duration)
441return Equals((Duration)value);
454public bool Equals(Duration duration)
479public static bool Equals(Duration t1, Duration t2)
505public Duration Subtract(Duration duration)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (37)
107if (_resolvedDuration == Duration.Automatic)
113_resolvedDuration = Duration.Forever;
326public Duration NaturalDuration
699Duration fillDuration, Duration period,
707TimeSpan beginTime, TimeSpan endTime, Duration period,
760internal virtual Duration CurrentDuration
762get { return Duration.Automatic; }
1240internal Duration EndOfActivePeriod
1248return Duration.Automatic;
1267return Duration.Forever;
1406internal Duration ResolvedDuration
1412Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic.");
1960Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2187Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2357Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2432Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value.");
2450Duration duration = NaturalDuration;
2452if (duration != Duration.Automatic)
2460Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic.");
2467if (_currentDuration == Duration.Automatic)
2469_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration
2493Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic.");
2494Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic.");
2510else if (_currentDuration == Duration.Forever)
2592Duration postFillDuration; // This is Zero when we have no fill zone
2596postFillDuration = Duration.Forever;
2848Duration postFillDuration)
3227Duration syncClockDuration = _syncData.SyncClockResolvedDuration;
3234else if (syncClockDuration == Duration.Forever)
3241Debug.Assert(syncClockDuration == Duration.Automatic);
3343Duration syncDuration = _syncData.SyncClockResolvedDuration;
4029internal Duration SyncClockResolvedDuration
4107private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates
4475internal Duration _resolvedDuration;
4485internal Duration _currentDuration;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
859internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio,
988internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio)
1034TimeSpan beginTime, TimeSpan endTime, Duration period,
1157Duration fillDuration, Duration period,