84 instantiations of Duration
PresentationCore (28)
System\Windows\Duration.cs (5)
58return new Duration(timeSpan); 72return new Duration(t1._timeSpan + t2._timeSpan); 100return new Duration(t1._timeSpan - t2._timeSpan); 364Duration duration = new Duration(); 379Duration duration = new Duration();
System\Windows\DurationConverter.cs (1)
86return new Duration(duration);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
426return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
425return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
425return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
425return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
460return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
460return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
460return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
425return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
460return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
459return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\MediaPlayerState.cs (1)
397return new Duration(TimeSpan.FromTicks(mediaLength));
PresentationFramework (8)
System\Windows\Controls\ProgressBar.cs (1)
250animation.Duration = new Duration(translateTime + pauseTime);
System\windows\Documents\CaretElement.cs (1)
905Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4007bamlType.DefaultConstructor = delegate() { return new System.Windows.Duration(); };
System\Windows\Markup\KnownTypes.cs (1)
1251case KnownElements.Duration: o = new System.Windows.Duration(); break;
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
463return new Duration(LargestTimeSpanKeyTime);
System\Windows\VisualStateManager.cs (2)
373dynamic.Duration = new Duration(TimeSpan.Zero); 781private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
System\Windows\VisualTransition.cs (1)
87private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
121Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 172Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 265Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 341Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 434Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 495Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
114Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 205Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 242Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 294Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 327Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
138Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
90animation.Duration = new Duration(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
108Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 243Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 320Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Aero2 (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
121Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 172Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 265Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 341Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 434Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 495Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
114Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 205Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 242Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 294Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 327Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
138Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
90animation.Duration = new Duration(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
108Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 243Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 320Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
108animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
108animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
108animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
108animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
Roslyn.VisualStudio.DiagnosticsWindow (2)
PerfMargin\StatusIndicator.xaml.cs (2)
48private static readonly DoubleAnimation s_growAnimation = new DoubleAnimation(1.0, new Duration(TimeSpan.FromSeconds(1.0)), FillBehavior.HoldEnd); 49private static readonly DoubleAnimation s_shrinkAnimation = new DoubleAnimation(0.0, new Duration(TimeSpan.FromSeconds(0.33333)), FillBehavior.HoldEnd);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1320opacityAnimation = new DoubleAnimation(1, new Duration(twoTenthsOfASeconds)); 1325opacityAnimation = new DoubleAnimation(0, new Duration(fourTenthsOfASeconds));
309 references to Duration
PresentationCore (255)
System\Windows\Duration.cs (42)
52public static implicit operator Duration(TimeSpan timeSpan) 68public static Duration operator +(Duration t1, Duration t2) 80return Duration.Forever; 85return Duration.Automatic; 96public static Duration operator -(Duration t1, Duration t2) 107return Duration.Forever; 119return Duration.Automatic; 130public static bool operator ==(Duration t1, Duration t2) 142public static bool operator !=(Duration t1, Duration t2) 156public static bool operator >(Duration t1, Duration t2) 190public static bool operator >=(Duration t1, Duration t2) 217public static bool operator <(Duration t1, Duration t2) 251public static bool operator <=(Duration t1, Duration t2) 286public static int Compare(Duration t1, Duration t2) 325public static Duration Plus(Duration duration) 335public static Duration operator +(Duration duration) 360public static Duration Automatic 364Duration duration = new Duration(); 375public static Duration Forever 379Duration duration = new Duration(); 416public Duration Add(Duration duration) 432else if (value is Duration) 434return Equals((Duration)value); 447public bool Equals(Duration duration) 472public static bool Equals(Duration t1, Duration t2) 498public Duration Subtract(Duration duration)
System\Windows\DurationConverter.cs (10)
72return Duration.Automatic; 76return Duration.Forever; 104if (destinationType != null && value is Duration) 106Duration durationValue = (Duration)value; 114mi = typeof(Duration).GetConstructor(new Type[] { typeof(TimeSpan) }); 118else if (durationValue == Duration.Forever) 120mi = typeof(Duration).GetProperty("Forever"); 126Debug.Assert(durationValue == Duration.Automatic); // Only other legal duration type 128mi = typeof(Duration).GetProperty("Automatic");
System\Windows\InterOp\D3DImage.cs (6)
225LockImpl(Duration.Forever); 232public bool TryLock(Duration timeout) 236if (timeout == Duration.Automatic) 580private bool LockImpl(Duration timeout) 582Debug.Assert(timeout != Duration.Automatic); 593if (timeout == Duration.Forever)
System\Windows\Media\Animation\AnimationTimeline.cs (1)
128protected override Duration GetNaturalDurationCore(Clock clock)
System\Windows\Media\Animation\Clock.cs (37)
92if (_resolvedDuration == Duration.Automatic) 98_resolvedDuration = Duration.Forever; 311public Duration NaturalDuration 684Duration fillDuration, Duration period, 692TimeSpan beginTime, TimeSpan endTime, Duration period, 744internal virtual Duration CurrentDuration 746get { return Duration.Automatic; } 1224internal Duration EndOfActivePeriod 1232return Duration.Automatic; 1251return Duration.Forever; 1390internal Duration ResolvedDuration 1396Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic."); 1944Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2171Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2341Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2416Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2434Duration duration = NaturalDuration; 2436if (duration != Duration.Automatic) 2444Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic."); 2451if (_currentDuration == Duration.Automatic) 2453_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 2477Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic."); 2478Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2494else if (_currentDuration == Duration.Forever) 2576Duration postFillDuration; // This is Zero when we have no fill zone 2580postFillDuration = Duration.Forever; 2833Duration postFillDuration) 3209Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3216else if (syncClockDuration == Duration.Forever) 3223Debug.Assert(syncClockDuration == Duration.Automatic); 3324Duration syncDuration = _syncData.SyncClockResolvedDuration; 4009internal Duration SyncClockResolvedDuration 4087private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates 4455internal Duration _resolvedDuration; 4465internal Duration _currentDuration;
System\Windows\Media\Animation\ClockController.cs (2)
162Duration duration = _owner.ResolvedDuration; 204Duration duration = _owner.ResolvedDuration;
System\Windows\Media\Animation\ClockGroup.cs (13)
136Duration duration = child.ResolvedDuration; 329internal override Duration CurrentDuration 333Duration manualDuration = _timeline.Duration; // Check if a duration is specified by the user 334if (manualDuration != Duration.Automatic) 339Duration currentDuration = TimeSpan.Zero; 353Duration childEndOfActivePeriod = current.EndOfActivePeriod; 355if (childEndOfActivePeriod == Duration.Forever) 360return Duration.Forever; 362else if (childEndOfActivePeriod == Duration.Automatic) 391return Duration.Automatic; 579Duration fillDuration, Duration period, 592TimeSpan beginTime, TimeSpan endTime, Duration period,
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
424protected override sealed Duration GetNaturalDurationCore(Clock clock) 619Duration duration = Duration;
System\Windows\Media\Animation\Generated\ByteAnimation.cs (4)
94public ByteAnimation(Byte toValue, Duration duration) 106public ByteAnimation(Byte toValue, Duration duration, FillBehavior fillBehavior) 119public ByteAnimation(Byte fromValue, Byte toValue, Duration duration) 132public ByteAnimation(Byte fromValue, Byte toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
423protected override sealed Duration GetNaturalDurationCore(Clock clock) 618Duration duration = Duration;
System\Windows\Media\Animation\Generated\ColorAnimation.cs (4)
94public ColorAnimation(Color toValue, Duration duration) 106public ColorAnimation(Color toValue, Duration duration, FillBehavior fillBehavior) 119public ColorAnimation(Color fromValue, Color toValue, Duration duration) 132public ColorAnimation(Color fromValue, Color toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (4)
94public DecimalAnimation(Decimal toValue, Duration duration) 106public DecimalAnimation(Decimal toValue, Duration duration, FillBehavior fillBehavior) 119public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration) 132public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (4)
94public DoubleAnimation(Double toValue, Duration duration) 106public DoubleAnimation(Double toValue, Duration duration, FillBehavior fillBehavior) 119public DoubleAnimation(Double fromValue, Double toValue, Duration duration) 132public DoubleAnimation(Double fromValue, Double toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
94public Int16Animation(Int16 toValue, Duration duration) 106public Int16Animation(Int16 toValue, Duration duration, FillBehavior fillBehavior) 119public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration) 132public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int32Animation.cs (4)
94public Int32Animation(Int32 toValue, Duration duration) 106public Int32Animation(Int32 toValue, Duration duration, FillBehavior fillBehavior) 119public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration) 132public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int64Animation.cs (4)
94public Int64Animation(Int64 toValue, Duration duration) 106public Int64Animation(Int64 toValue, Duration duration, FillBehavior fillBehavior) 119public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration) 132public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
423protected override sealed Duration GetNaturalDurationCore(Clock clock) 618Duration duration = Duration;
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
423protected override sealed Duration GetNaturalDurationCore(Clock clock) 618Duration duration = Duration;
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (4)
95public Point3DAnimation(Point3D toValue, Duration duration) 107public Point3DAnimation(Point3D toValue, Duration duration, FillBehavior fillBehavior) 120public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration) 133public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
458protected override sealed Duration GetNaturalDurationCore(Clock clock) 712Duration duration = Duration;
System\Windows\Media\Animation\Generated\PointAnimation.cs (4)
94public PointAnimation(Point toValue, Duration duration) 106public PointAnimation(Point toValue, Duration duration, FillBehavior fillBehavior) 119public PointAnimation(Point fromValue, Point toValue, Duration duration) 132public PointAnimation(Point fromValue, Point toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (4)
95public QuaternionAnimation(Quaternion toValue, Duration duration) 107public QuaternionAnimation(Quaternion toValue, Duration duration, FillBehavior fillBehavior) 120public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration) 133public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
458protected override sealed Duration GetNaturalDurationCore(Clock clock) 712Duration duration = Duration;
System\Windows\Media\Animation\Generated\RectAnimation.cs (4)
94public RectAnimation(Rect toValue, Duration duration) 106public RectAnimation(Rect toValue, Duration duration, FillBehavior fillBehavior) 119public RectAnimation(Rect fromValue, Rect toValue, Duration duration) 132public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (4)
95public Rotation3DAnimation(Rotation3D toValue, Duration duration) 107public Rotation3DAnimation(Rotation3D toValue, Duration duration, FillBehavior fillBehavior) 120public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration) 133public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
458protected override sealed Duration GetNaturalDurationCore(Clock clock) 712Duration duration = Duration;
System\Windows\Media\Animation\Generated\SingleAnimation.cs (4)
94public SingleAnimation(Single toValue, Duration duration) 106public SingleAnimation(Single toValue, Duration duration, FillBehavior fillBehavior) 119public SingleAnimation(Single fromValue, Single toValue, Duration duration) 132public SingleAnimation(Single fromValue, Single toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\SizeAnimation.cs (4)
94public SizeAnimation(Size toValue, Duration duration) 106public SizeAnimation(Size toValue, Duration duration, FillBehavior fillBehavior) 119public SizeAnimation(Size fromValue, Size toValue, Duration duration) 132public SizeAnimation(Size fromValue, Size toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
423protected override sealed Duration GetNaturalDurationCore(Clock clock) 618Duration duration = Duration;
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (4)
95public Vector3DAnimation(Vector3D toValue, Duration duration) 107public Vector3DAnimation(Vector3D toValue, Duration duration, FillBehavior fillBehavior) 120public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration) 133public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
458protected override sealed Duration GetNaturalDurationCore(Clock clock) 712Duration duration = Duration;
System\Windows\Media\Animation\Generated\VectorAnimation.cs (4)
94public VectorAnimation(Vector toValue, Duration duration) 106public VectorAnimation(Vector toValue, Duration duration, FillBehavior fillBehavior) 119public VectorAnimation(Vector fromValue, Vector toValue, Duration duration) 132public VectorAnimation(Vector fromValue, Vector toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
457protected override sealed Duration GetNaturalDurationCore(Clock clock) 711Duration duration = Duration;
System\Windows\Media\Animation\ParallelTimeline.cs (9)
49public ParallelTimeline(TimeSpan? beginTime, Duration duration) 66public ParallelTimeline(TimeSpan? beginTime, Duration duration, RepeatBehavior repeatBehavior) 84protected override Duration GetNaturalDurationCore(Clock clock) 86Duration simpleDuration = TimeSpan.Zero; 102Duration childEndOfActivePeriod = children[childIndex].EndOfActivePeriod; 104if (childEndOfActivePeriod == Duration.Forever) 109return Duration.Forever; 111else if (childEndOfActivePeriod == Duration.Automatic) 130return Duration.Automatic;
System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
853internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio, 982internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio) 1028TimeSpan beginTime, TimeSpan endTime, Duration period, 1151Duration fillDuration, Duration period,
System\Windows\Media\Animation\Timeline.cs (10)
70protected Timeline(Nullable<TimeSpan> beginTime, Duration duration) 89protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 404typeof(Duration), 407Duration.Automatic, 423public Duration Duration 427return (Duration)GetValue(DurationProperty); 684internal protected Duration GetNaturalDuration(Clock clock) 700protected virtual Duration GetNaturalDurationCore(Clock clock) 702return Duration.Automatic; 1097if (Duration != Duration.Automatic)
System\Windows\Media\Animation\TimelineGroup.cs (2)
47protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration) 64protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
System\Windows\Media\Animation\TimeManager.cs (1)
67ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
210bool locked = TryLock(Duration.Forever); 224public bool TryLock(Duration timeout) 229if (timeout == Duration.Automatic) 233else if (timeout == Duration.Forever)
System\Windows\Media\MediaPlayer.cs (1)
238public Duration NaturalDuration
System\Windows\Media\MediaPlayerState.cs (2)
383internal Duration NaturalDuration 393return Duration.Automatic;
System\Windows\Media\MediaTimeline.cs (4)
68public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration) 81public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 224protected override Duration GetNaturalDurationCore(Clock clock) 229return Duration.Automatic;
PresentationFramework (16)
System\Windows\Controls\MediaElement.cs (1)
512public Duration NaturalDuration
System\Windows\Controls\Primitives\PopupRoot.cs (2)
282internal void SetupFadeAnimation(Duration duration, bool visible) 290internal void SetupTranslateAnimations(PopupAnimation animationType, Duration duration, bool animateFromRight, bool animateFromBottom)
System\windows\Documents\CaretElement.cs (1)
905Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
281case 187: t = () => typeof(Duration); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4005typeof(System.Windows.Duration),
System\Windows\Markup\KnownTypes.cs (1)
5741case KnownElements.Duration: t = typeof(System.Windows.Duration); break;
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (4)
93public ThicknessAnimation(Thickness toValue, Duration duration) 105public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior) 118public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration) 131public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
461protected override sealed Duration GetNaturalDurationCore(Clock clock) 715Duration duration = Duration;
System\Windows\VisualStateManager.cs (1)
781private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
System\Windows\VisualTransition.cs (2)
55public Duration GeneratedDuration 87private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (19)
Microsoft\Windows\Themes\BulletChrome.cs (6)
121Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 172Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 265Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 341Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 434Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 495Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
114Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 205Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 242Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 294Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 327Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
138Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ScrollChrome.cs (5)
108Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 243Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 320Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Aero2 (19)
Microsoft\Windows\Themes\BulletChrome.cs (6)
121Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 172Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 265Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 341Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 434Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 495Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
114Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 205Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 242Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 294Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 327Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
138Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ScrollChrome.cs (5)
108Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 145Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 243Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 320Duration duration = new Duration(TimeSpan.FromSeconds(0.3));