84 instantiations of Duration
PresentationCore (28)
System\Windows\Duration.cs (5)
62return new Duration(timeSpan); 76return new Duration(t1._timeSpan + t2._timeSpan); 104return new Duration(t1._timeSpan - t2._timeSpan); 368Duration duration = new Duration(); 383Duration duration = new Duration();
System\Windows\DurationConverter.cs (1)
89return new Duration(duration);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
441return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
441return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
441return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
441return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
441return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
474return new Duration(LargestTimeSpanKeyTime);
System\Windows\Media\MediaPlayerState.cs (1)
418return new Duration(TimeSpan.FromTicks(mediaLength));
PresentationFramework (8)
System\Windows\Controls\ProgressBar.cs (1)
257animation.Duration = new Duration(translateTime + pauseTime);
System\windows\Documents\CaretElement.cs (1)
908Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4009bamlType.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)
473return new Duration(LargestTimeSpanKeyTime);
System\Windows\VisualStateManager.cs (2)
378dynamic.Duration = new Duration(TimeSpan.Zero); 786private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
System\Windows\VisualTransition.cs (1)
91private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 178Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 271Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 347Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 440Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 501Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 154Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 214Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 251Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 303Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 336Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92animation.Duration = new Duration(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 225Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 248Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 325Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Aero2 (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 178Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 271Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 347Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 440Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 501Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 154Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 214Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 251Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 303Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 336Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92animation.Duration = new Duration(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 225Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 248Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 325Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110animation.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)
110animation.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)
110animation.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)
110animation.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)
1323opacityAnimation = new DoubleAnimation(1, new Duration(twoTenthsOfASeconds)); 1328opacityAnimation = new DoubleAnimation(0, new Duration(fourTenthsOfASeconds));
309 references to Duration
PresentationCore (255)
System\Windows\Duration.cs (42)
56public static implicit operator Duration(TimeSpan timeSpan) 72public static Duration operator +(Duration t1, Duration t2) 84return Duration.Forever; 89return Duration.Automatic; 100public static Duration operator -(Duration t1, Duration t2) 111return Duration.Forever; 123return Duration.Automatic; 134public static bool operator ==(Duration t1, Duration t2) 146public static bool operator !=(Duration t1, Duration t2) 160public static bool operator >(Duration t1, Duration t2) 194public static bool operator >=(Duration t1, Duration t2) 221public static bool operator <(Duration t1, Duration t2) 255public static bool operator <=(Duration t1, Duration t2) 290public static int Compare(Duration t1, Duration t2) 329public static Duration Plus(Duration duration) 339public static Duration operator +(Duration duration) 364public static Duration Automatic 368Duration duration = new Duration(); 379public static Duration Forever 383Duration duration = new Duration(); 420public Duration Add(Duration duration) 436else if (value is Duration) 438return Equals((Duration)value); 451public bool Equals(Duration duration) 476public static bool Equals(Duration t1, Duration t2) 502public Duration Subtract(Duration duration)
System\Windows\DurationConverter.cs (10)
75return Duration.Automatic; 79return Duration.Forever; 107if (destinationType != null && value is Duration) 109Duration durationValue = (Duration)value; 117mi = typeof(Duration).GetConstructor(new Type[] { typeof(TimeSpan) }); 121else if (durationValue == Duration.Forever) 123mi = typeof(Duration).GetProperty("Forever"); 129Debug.Assert(durationValue == Duration.Automatic); // Only other legal duration type 131mi = typeof(Duration).GetProperty("Automatic");
System\Windows\InterOp\D3DImage.cs (6)
237LockImpl(Duration.Forever); 244public bool TryLock(Duration timeout) 248if (timeout == Duration.Automatic) 592private bool LockImpl(Duration timeout) 594Debug.Assert(timeout != Duration.Automatic); 605if (timeout == Duration.Forever)
System\Windows\Media\Animation\AnimationTimeline.cs (1)
135protected override Duration GetNaturalDurationCore(Clock clock)
System\Windows\Media\Animation\Clock.cs (37)
105if (_resolvedDuration == Duration.Automatic) 111_resolvedDuration = Duration.Forever; 324public Duration NaturalDuration 697Duration fillDuration, Duration period, 705TimeSpan beginTime, TimeSpan endTime, Duration period, 757internal virtual Duration CurrentDuration 759get { return Duration.Automatic; } 1237internal Duration EndOfActivePeriod 1245return Duration.Automatic; 1264return Duration.Forever; 1403internal Duration ResolvedDuration 1409Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic."); 1957Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2184Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2354Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2429Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2447Duration duration = NaturalDuration; 2449if (duration != Duration.Automatic) 2457Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic."); 2464if (_currentDuration == Duration.Automatic) 2466_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 2490Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic."); 2491Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2507else if (_currentDuration == Duration.Forever) 2589Duration postFillDuration; // This is Zero when we have no fill zone 2593postFillDuration = Duration.Forever; 2846Duration postFillDuration) 3222Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3229else if (syncClockDuration == Duration.Forever) 3236Debug.Assert(syncClockDuration == Duration.Automatic); 3337Duration syncDuration = _syncData.SyncClockResolvedDuration; 4022internal Duration SyncClockResolvedDuration 4100private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates 4468internal Duration _resolvedDuration; 4478internal Duration _currentDuration;
System\Windows\Media\Animation\ClockController.cs (2)
175Duration duration = _owner.ResolvedDuration; 217Duration duration = _owner.ResolvedDuration;
System\Windows\Media\Animation\ClockGroup.cs (13)
141Duration duration = child.ResolvedDuration; 334internal override Duration CurrentDuration 338Duration manualDuration = _timeline.Duration; // Check if a duration is specified by the user 339if (manualDuration != Duration.Automatic) 344Duration currentDuration = TimeSpan.Zero; 358Duration childEndOfActivePeriod = current.EndOfActivePeriod; 360if (childEndOfActivePeriod == Duration.Forever) 365return Duration.Forever; 367else if (childEndOfActivePeriod == Duration.Automatic) 396return Duration.Automatic; 584Duration fillDuration, Duration period, 597TimeSpan beginTime, TimeSpan endTime, Duration period,
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
439protected override sealed Duration GetNaturalDurationCore(Clock clock) 634Duration duration = Duration;
System\Windows\Media\Animation\Generated\ByteAnimation.cs (4)
105public ByteAnimation(Byte toValue, Duration duration) 117public ByteAnimation(Byte toValue, Duration duration, FillBehavior fillBehavior) 130public ByteAnimation(Byte fromValue, Byte toValue, Duration duration) 143public ByteAnimation(Byte fromValue, Byte toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
439protected override sealed Duration GetNaturalDurationCore(Clock clock) 634Duration duration = Duration;
System\Windows\Media\Animation\Generated\ColorAnimation.cs (4)
105public ColorAnimation(Color toValue, Duration duration) 117public ColorAnimation(Color toValue, Duration duration, FillBehavior fillBehavior) 130public ColorAnimation(Color fromValue, Color toValue, Duration duration) 143public ColorAnimation(Color fromValue, Color toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (4)
105public DecimalAnimation(Decimal toValue, Duration duration) 117public DecimalAnimation(Decimal toValue, Duration duration, FillBehavior fillBehavior) 130public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration) 143public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (4)
105public DoubleAnimation(Double toValue, Duration duration) 117public DoubleAnimation(Double toValue, Duration duration, FillBehavior fillBehavior) 130public DoubleAnimation(Double fromValue, Double toValue, Duration duration) 143public DoubleAnimation(Double fromValue, Double toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
105public Int16Animation(Int16 toValue, Duration duration) 117public Int16Animation(Int16 toValue, Duration duration, FillBehavior fillBehavior) 130public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration) 143public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int32Animation.cs (4)
105public Int32Animation(Int32 toValue, Duration duration) 117public Int32Animation(Int32 toValue, Duration duration, FillBehavior fillBehavior) 130public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration) 143public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\Int64Animation.cs (4)
105public Int64Animation(Int64 toValue, Duration duration) 117public Int64Animation(Int64 toValue, Duration duration, FillBehavior fillBehavior) 130public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration) 143public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
439protected override sealed Duration GetNaturalDurationCore(Clock clock) 634Duration duration = Duration;
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
439protected override sealed Duration GetNaturalDurationCore(Clock clock) 634Duration duration = Duration;
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (4)
105public Point3DAnimation(Point3D toValue, Duration duration) 117public Point3DAnimation(Point3D toValue, Duration duration, FillBehavior fillBehavior) 130public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration) 143public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\PointAnimation.cs (4)
105public PointAnimation(Point toValue, Duration duration) 117public PointAnimation(Point toValue, Duration duration, FillBehavior fillBehavior) 130public PointAnimation(Point fromValue, Point toValue, Duration duration) 143public PointAnimation(Point fromValue, Point toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (4)
105public QuaternionAnimation(Quaternion toValue, Duration duration) 117public QuaternionAnimation(Quaternion toValue, Duration duration, FillBehavior fillBehavior) 130public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration) 143public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\RectAnimation.cs (4)
105public RectAnimation(Rect toValue, Duration duration) 117public RectAnimation(Rect toValue, Duration duration, FillBehavior fillBehavior) 130public RectAnimation(Rect fromValue, Rect toValue, Duration duration) 143public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (4)
105public Rotation3DAnimation(Rotation3D toValue, Duration duration) 117public Rotation3DAnimation(Rotation3D toValue, Duration duration, FillBehavior fillBehavior) 130public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration) 143public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\SingleAnimation.cs (4)
105public SingleAnimation(Single toValue, Duration duration) 117public SingleAnimation(Single toValue, Duration duration, FillBehavior fillBehavior) 130public SingleAnimation(Single fromValue, Single toValue, Duration duration) 143public SingleAnimation(Single fromValue, Single toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\SizeAnimation.cs (4)
105public SizeAnimation(Size toValue, Duration duration) 117public SizeAnimation(Size toValue, Duration duration, FillBehavior fillBehavior) 130public SizeAnimation(Size fromValue, Size toValue, Duration duration) 143public SizeAnimation(Size fromValue, Size toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
439protected override sealed Duration GetNaturalDurationCore(Clock clock) 634Duration duration = Duration;
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (4)
105public Vector3DAnimation(Vector3D toValue, Duration duration) 117public Vector3DAnimation(Vector3D toValue, Duration duration, FillBehavior fillBehavior) 130public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration) 143public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\Generated\VectorAnimation.cs (4)
105public VectorAnimation(Vector toValue, Duration duration) 117public VectorAnimation(Vector toValue, Duration duration, FillBehavior fillBehavior) 130public VectorAnimation(Vector fromValue, Vector toValue, Duration duration) 143public VectorAnimation(Vector fromValue, Vector toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
472protected override sealed Duration GetNaturalDurationCore(Clock clock) 726Duration duration = Duration;
System\Windows\Media\Animation\ParallelTimeline.cs (9)
54public ParallelTimeline(TimeSpan? beginTime, Duration duration) 71public ParallelTimeline(TimeSpan? beginTime, Duration duration, RepeatBehavior repeatBehavior) 89protected override Duration GetNaturalDurationCore(Clock clock) 91Duration simpleDuration = TimeSpan.Zero; 107Duration childEndOfActivePeriod = children[childIndex].EndOfActivePeriod; 109if (childEndOfActivePeriod == Duration.Forever) 114return Duration.Forever; 116else if (childEndOfActivePeriod == Duration.Automatic) 135return Duration.Automatic;
System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
858internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio, 987internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio) 1033TimeSpan beginTime, TimeSpan endTime, Duration period, 1156Duration fillDuration, Duration period,
System\Windows\Media\Animation\Timeline.cs (10)
80protected Timeline(Nullable<TimeSpan> beginTime, Duration duration) 99protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 414typeof(Duration), 417Duration.Automatic, 433public Duration Duration 437return (Duration)GetValue(DurationProperty); 694internal protected Duration GetNaturalDuration(Clock clock) 710protected virtual Duration GetNaturalDurationCore(Clock clock) 712return Duration.Automatic; 1107if (Duration != Duration.Automatic)
System\Windows\Media\Animation\TimelineGroup.cs (2)
53protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration) 70protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
System\Windows\Media\Animation\TimeManager.cs (1)
81ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
227bool locked = TryLock(Duration.Forever); 241public bool TryLock(Duration timeout) 246if (timeout == Duration.Automatic) 250else if (timeout == Duration.Forever)
System\Windows\Media\MediaPlayer.cs (1)
261public Duration NaturalDuration
System\Windows\Media\MediaPlayerState.cs (2)
404internal Duration NaturalDuration 414return Duration.Automatic;
System\Windows\Media\MediaTimeline.cs (4)
83public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration) 96public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 239protected override Duration GetNaturalDurationCore(Clock clock) 244return Duration.Automatic;
PresentationFramework (16)
System\Windows\Controls\MediaElement.cs (1)
519public Duration NaturalDuration
System\Windows\Controls\Primitives\PopupRoot.cs (2)
291internal void SetupFadeAnimation(Duration duration, bool visible) 299internal void SetupTranslateAnimations(PopupAnimation animationType, Duration duration, bool animateFromRight, bool animateFromBottom)
System\windows\Documents\CaretElement.cs (1)
908Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
283case 187: t = () => typeof(Duration); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4007typeof(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)
104public ThicknessAnimation(Thickness toValue, Duration duration) 116public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior) 129public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration) 142public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
471protected override sealed Duration GetNaturalDurationCore(Clock clock) 725Duration duration = Duration;
System\Windows\VisualStateManager.cs (1)
786private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
System\Windows\VisualTransition.cs (2)
59public Duration GeneratedDuration 91private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (19)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 178Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 271Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 347Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 440Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 501Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 154Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 214Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 251Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 303Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 336Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 225Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 248Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 325Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Aero2 (19)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 178Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 271Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 347Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 440Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 501Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 154Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 214Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 251Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 303Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 336Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 150Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 225Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 248Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 325Duration duration = new Duration(TimeSpan.FromSeconds(0.3));