64 references to HasTimeSpan
PresentationCore (63)
System\Windows\Duration.cs (18)
70if (t1.HasTimeSpan && t2.HasTimeSpan) 98if (t1.HasTimeSpan && t2.HasTimeSpan) 103&& t2.HasTimeSpan) 158if (t1.HasTimeSpan && t2.HasTimeSpan) 162else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 167else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 219if (t1.HasTimeSpan && t2.HasTimeSpan) 223else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 228else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 395if (HasTimeSpan) 449if (HasTimeSpan) 451if (duration.HasTimeSpan) 483if (HasTimeSpan) 509if (HasTimeSpan)
System\Windows\DurationConverter.cs (1)
112if (durationValue.HasTimeSpan)
System\Windows\Media\Animation\Clock.cs (12)
607if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 1959if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 2193Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration 2194Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2343if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2483if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2500Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2513Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan."); 2514Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 3211if (syncClockDuration.HasTimeSpan) 3334else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan) 4014if (!_syncClockResolvedDuration.HasTimeSpan)
System\Windows\Media\Animation\ClockController.cs (2)
164if (!duration.HasTimeSpan) 206if (!duration.HasTimeSpan)
System\Windows\Media\Animation\ClockGroup.cs (1)
139if ((!duration.HasTimeSpan || duration.TimeSpan > TimeSpan.Zero)
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
621if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
620if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
620if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
620if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
714if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
714if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
714if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
620if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
714if (duration.HasTimeSpan)
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
713if (duration.HasTimeSpan)
System\Windows\Media\Animation\TimeIntervalCollection.cs (8)
862|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 988|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 1037Debug.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 1050if (period.HasTimeSpan) // Case of finite simple duration; in the infinite case we are already done 1163Debug.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 1173|| (endTime.HasValue && fillDuration.HasTimeSpan // ...the active and fill periods don't stretch forever, and... 1186bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.TimeSpan > TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone 1188if (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)