64 references to HasTimeSpan
PresentationCore (63)
System\Windows\Duration.cs (18)
77if (t1.HasTimeSpan && t2.HasTimeSpan) 105if (t1.HasTimeSpan && t2.HasTimeSpan) 110&& t2.HasTimeSpan) 165if (t1.HasTimeSpan && t2.HasTimeSpan) 169else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 174else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 226if (t1.HasTimeSpan && t2.HasTimeSpan) 230else if (t1.HasTimeSpan && t2._durationType == DurationType.Forever) 235else if (t1._durationType == DurationType.Forever && t2.HasTimeSpan) 396return HasTimeSpan ? _timeSpan : throw new InvalidOperationException(SR.Format(SR.Timing_NotTimeSpan, this)); 431if (HasTimeSpan) 433if (duration.HasTimeSpan) 465return HasTimeSpan ? _timeSpan.GetHashCode() : _durationType.GetHashCode() + 17; 484return HasTimeSpan ? TypeDescriptor.GetConverter(_timeSpan).ConvertToString(_timeSpan) : ToStringInvariant();
System\Windows\DurationConverter.cs (1)
106if (duration.HasTimeSpan)
System\Windows\Media\Animation\Clock.cs (12)
607if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero) 1958if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration 2192Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration 2193Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value."); 2342if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel 2482if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero) 2499Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 2512Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan."); 2513Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan."); 3210if (syncClockDuration.HasTimeSpan) 3333else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan) 4005if (!_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)