64 references to HasTimeSpan
PresentationCore (63)
System\Windows\Duration.cs (18)
76if (t1.HasTimeSpan && t2.HasTimeSpan) 104if (t1.HasTimeSpan && t2.HasTimeSpan) 109&& t2.HasTimeSpan) 164if (t1.HasTimeSpan && t2.HasTimeSpan) 168else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 173else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 225if (t1.HasTimeSpan && t2.HasTimeSpan) 229else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 234else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 395return HasTimeSpan ? _timeSpan : throw new InvalidOperationException(SR.Format(SR.Timing_NotTimeSpan, this)); 430if (HasTimeSpan) 432if (duration.HasTimeSpan) 464return HasTimeSpan ? _timeSpan.GetHashCode() : _durationType.GetHashCode() + 17; 483return HasTimeSpan ? TypeDescriptor.GetConverter(_timeSpan).ConvertToString(_timeSpan) : ToStringInvariant();
System\Windows\DurationConverter.cs (1)
106if (duration.HasTimeSpan)
System\Windows\Media\Animation\Clock.cs (12)
606if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 1957if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 2191Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration 2192Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2341if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2481if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2498Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2511Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan."); 2512Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 3209if (syncClockDuration.HasTimeSpan) 3332else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan) 4004if (!_syncClockResolvedDuration.HasTimeSpan)
System\Windows\Media\Animation\ClockController.cs (2)
163if (!duration.HasTimeSpan) 205if (!duration.HasTimeSpan)
System\Windows\Media\Animation\ClockGroup.cs (1)
138if ((!duration.HasTimeSpan || duration.TimeSpan > TimeSpan.Zero)
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
625if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
625if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
625if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
625if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
625if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)
System\Windows\Media\Animation\TimeIntervalCollection.cs (8)
861|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 987|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 1036Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1049if (period.HasTimeSpan) // Case of finite simple duration; in the infinite case we are already done 1162Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1172|| (endTime.HasValue && fillDuration.HasTimeSpan // ...the active and fill periods don't stretch forever, and... 1185bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.TimeSpan > TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone 1187if (period.HasTimeSpan) // We have a finite TimeSpan period and non-zero activation duration
PresentationFramework (1)
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
717if (duration.HasTimeSpan)