80 references to Duration
PresentationCore (26)
System\Windows\Duration.cs (3)
62
return new
Duration
(timeSpan);
76
return new
Duration
(t1._timeSpan + t2._timeSpan);
104
return new
Duration
(t1._timeSpan - t2._timeSpan);
System\Windows\DurationConverter.cs (1)
89
return new
Duration
(duration);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
441
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
441
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
441
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
441
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
441
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
474
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\Media\MediaPlayerState.cs (1)
418
return new
Duration
(TimeSpan.FromTicks(mediaLength));
PresentationFramework (6)
System\Windows\Controls\ProgressBar.cs (1)
257
animation.Duration = new
Duration
(translateTime + pauseTime);
System\windows\Documents\CaretElement.cs (1)
908
Duration blinkDuration = new
Duration
(TimeSpan.FromMilliseconds(blinkInterval * 2));
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
473
return new
Duration
(LargestTimeSpanKeyTime);
System\Windows\VisualStateManager.cs (2)
378
dynamic.Duration = new
Duration
(TimeSpan.Zero);
786
private static readonly Duration DurationZero = new
Duration
(TimeSpan.Zero);
System\Windows\VisualTransition.cs (1)
91
private Duration _generatedDuration = new
Duration
(new TimeSpan());
PresentationFramework.Aero (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
178
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
271
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
347
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
440
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
501
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
154
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
214
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
251
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
303
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.1));
336
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
156
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92
animation.Duration = new
Duration
(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
150
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
225
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
248
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
325
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
PresentationFramework.Aero2 (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
127
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
178
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
271
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
347
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
440
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
501
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
123
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
154
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
214
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
251
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
303
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.1));
336
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
144
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
156
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92
animation.Duration = new
Duration
(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
113
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
150
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
225
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.2));
248
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
325
Duration duration = new
Duration
(TimeSpan.FromSeconds(0.3));
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110
animation.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)
110
animation.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)
110
animation.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)
110
animation.Duration = new
Duration
(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
Roslyn.VisualStudio.DiagnosticsWindow (2)
PerfMargin\StatusIndicator.xaml.cs (2)
48
private static readonly DoubleAnimation s_growAnimation = new DoubleAnimation(1.0, new
Duration
(TimeSpan.FromSeconds(1.0)), FillBehavior.HoldEnd);
49
private 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)
1323
opacityAnimation = new DoubleAnimation(1, new
Duration
(twoTenthsOfASeconds));
1328
opacityAnimation = new DoubleAnimation(0, new
Duration
(fourTenthsOfASeconds));