64 references to HasTimeSpan
PresentationCore (63)
Core\CSharp\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) 402if (HasTimeSpan) 456if (HasTimeSpan) 458if (duration.HasTimeSpan) 490if (HasTimeSpan) 516if (HasTimeSpan)
Core\CSharp\System\Windows\DurationConverter.cs (1)
121if (durationValue.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (12)
622if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 1975if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 2209Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration 2210Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2359if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2499if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2516Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2529Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan."); 2530Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 3229if (syncClockDuration.HasTimeSpan) 3353else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan) 4034if (!_syncClockResolvedDuration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\ClockController.cs (2)
179if (!duration.HasTimeSpan) 221if (!duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (1)
146if ((!duration.HasTimeSpan || duration.TimeSpan > TimeSpan.Zero)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
647if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
647if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
647if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
647if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
647if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (8)
868|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 994|| !period.HasTimeSpan // We have an indefinite period, e.g. we are not periodic 1043Debug.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 1056if (period.HasTimeSpan) // Case of finite simple duration; in the infinite case we are already done 1169Debug.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 1179|| (endTime.HasValue && fillDuration.HasTimeSpan // ...the active and fill periods don't stretch forever, and... 1192bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.TimeSpan > TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone 1194if (period.HasTimeSpan) // We have a finite TimeSpan period and non-zero activation duration
PresentationFramework (1)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
739if (duration.HasTimeSpan)