59 instantiations of Duration
PresentationCore (28)
Core\CSharp\System\Windows\Duration.cs (5)
64return new Duration(timeSpan); 78return new Duration(t1._timeSpan + t2._timeSpan); 106return new Duration(t1._timeSpan - t2._timeSpan); 371Duration duration = new Duration(); 386Duration duration = new Duration();
Core\CSharp\System\Windows\DurationConverter.cs (1)
90return new Duration(duration);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
449return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
449return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
449return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
449return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
449return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
504return new Duration(TimeSpan.FromTicks(mediaLength));
PresentationFramework (8)
src\Framework\System\Windows\Controls\ProgressBar.cs (1)
257animation.Duration = new Duration(translateTime + pauseTime);
src\Framework\System\windows\Documents\CaretElement.cs (1)
912Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4005bamlType.DefaultConstructor = delegate() { return new System.Windows.Duration(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1252case KnownElements.Duration: o = new System.Windows.Duration(); break;
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
482return new Duration(LargestTimeSpanKeyTime);
src\Framework\System\Windows\VisualStateManager.cs (2)
424dynamic.Duration = new Duration(TimeSpan.Zero); 843private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
src\Framework\System\Windows\VisualTransition.cs (1)
90private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (20)
Microsoft\Windows\Themes\BulletChrome.cs (6)
133Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 184Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 277Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 353Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 446Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 507Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
129Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 160Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 257Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 309Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 342Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
150Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 162Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
97animation.Duration = new Duration(translateTime + pauseTime);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
119Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 231Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 254Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 331Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
289 references to Duration
PresentationCore (254)
Core\CSharp\System\Windows\Duration.cs (42)
58public static implicit operator Duration(TimeSpan timeSpan) 74public static Duration operator +(Duration t1, Duration t2) 86return Duration.Forever; 91return Duration.Automatic; 102public static Duration operator -(Duration t1, Duration t2) 113return Duration.Forever; 125return Duration.Automatic; 136public static bool operator ==(Duration t1, Duration t2) 148public static bool operator !=(Duration t1, Duration t2) 162public static bool operator >(Duration t1, Duration t2) 196public static bool operator >=(Duration t1, Duration t2) 223public static bool operator <(Duration t1, Duration t2) 257public static bool operator <=(Duration t1, Duration t2) 292public static int Compare(Duration t1, Duration t2) 332public static Duration Plus(Duration duration) 342public static Duration operator +(Duration duration) 367public static Duration Automatic 371Duration duration = new Duration(); 382public static Duration Forever 386Duration duration = new Duration(); 423public Duration Add(Duration duration) 439else if (value is Duration) 441return Equals((Duration)value); 454public bool Equals(Duration duration) 479public static bool Equals(Duration t1, Duration t2) 505public Duration Subtract(Duration duration)
Core\CSharp\System\Windows\DurationConverter.cs (10)
76return Duration.Automatic; 80return Duration.Forever; 113if (destinationType != null && value is Duration) 115Duration durationValue = (Duration)value; 123mi = typeof(Duration).GetConstructor(new Type[] { typeof(TimeSpan) }); 127else if (durationValue == Duration.Forever) 129mi = typeof(Duration).GetProperty("Forever"); 135Debug.Assert(durationValue == Duration.Automatic); // Only other legal duration type 137mi = typeof(Duration).GetProperty("Automatic");
Core\CSharp\System\Windows\Interop\D3DImage.cs (6)
270LockImpl(Duration.Forever); 277public bool TryLock(Duration timeout) 281if (timeout == Duration.Automatic) 649private bool LockImpl(Duration timeout) 651Debug.Assert(timeout != Duration.Automatic); 662if (timeout == Duration.Forever)
Core\CSharp\System\Windows\Media\Animation\AnimationTimeline.cs (1)
133protected override Duration GetNaturalDurationCore(Clock clock)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (37)
107if (_resolvedDuration == Duration.Automatic) 113_resolvedDuration = Duration.Forever; 326public Duration NaturalDuration 699Duration fillDuration, Duration period, 707TimeSpan beginTime, TimeSpan endTime, Duration period, 760internal virtual Duration CurrentDuration 762get { return Duration.Automatic; } 1240internal Duration EndOfActivePeriod 1248return Duration.Automatic; 1267return Duration.Forever; 1406internal Duration ResolvedDuration 1412Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be set to Automatic."); 1960Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2187Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2357Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2432Debug.Assert(_currentDuration == Duration.Forever, "_currentDuration has an invalid enum value."); 2450Duration duration = NaturalDuration; 2452if (duration != Duration.Automatic) 2460Debug.Assert(_resolvedDuration == Duration.Forever, "_resolvedDuration should be Forever when NaturalDuration is Automatic."); 2467if (_currentDuration == Duration.Automatic) 2469_currentDuration = Duration.Forever; // We treat Automatic as unresolved current duration 2493Debug.Assert(_resolvedDuration != Duration.Automatic, "_resolvedDuration should never be Automatic."); 2494Debug.Assert(_currentDuration != Duration.Automatic, "_currentDuration should never be Automatic."); 2510else if (_currentDuration == Duration.Forever) 2592Duration postFillDuration; // This is Zero when we have no fill zone 2596postFillDuration = Duration.Forever; 2848Duration postFillDuration) 3227Duration syncClockDuration = _syncData.SyncClockResolvedDuration; 3234else if (syncClockDuration == Duration.Forever) 3241Debug.Assert(syncClockDuration == Duration.Automatic); 3343Duration syncDuration = _syncData.SyncClockResolvedDuration; 4029internal Duration SyncClockResolvedDuration 4107private Duration _syncClockResolvedDuration = Duration.Automatic; // Duration -- *local* coordinates 4475internal Duration _resolvedDuration; 4485internal Duration _currentDuration;
Core\CSharp\System\Windows\Media\Animation\ClockController.cs (2)
177Duration duration = _owner.ResolvedDuration; 219Duration duration = _owner.ResolvedDuration;
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (13)
143Duration duration = child.ResolvedDuration; 336internal override Duration CurrentDuration 340Duration manualDuration = _timeline.Duration; // Check if a duration is specified by the user 341if (manualDuration != Duration.Automatic) 346Duration currentDuration = TimeSpan.Zero; 360Duration childEndOfActivePeriod = current.EndOfActivePeriod; 362if (childEndOfActivePeriod == Duration.Forever) 367return Duration.Forever; 369else if (childEndOfActivePeriod == Duration.Automatic) 398return Duration.Automatic; 586Duration fillDuration, Duration period, 599TimeSpan beginTime, TimeSpan endTime, Duration period,
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
447protected override sealed Duration GetNaturalDurationCore(Clock clock) 645Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (4)
107public ByteAnimation(Byte toValue, Duration duration) 119public ByteAnimation(Byte toValue, Duration duration, FillBehavior fillBehavior) 132public ByteAnimation(Byte fromValue, Byte toValue, Duration duration) 145public ByteAnimation(Byte fromValue, Byte toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
447protected override sealed Duration GetNaturalDurationCore(Clock clock) 645Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (4)
107public ColorAnimation(Color toValue, Duration duration) 119public ColorAnimation(Color toValue, Duration duration, FillBehavior fillBehavior) 132public ColorAnimation(Color fromValue, Color toValue, Duration duration) 145public ColorAnimation(Color fromValue, Color toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (4)
107public DecimalAnimation(Decimal toValue, Duration duration) 119public DecimalAnimation(Decimal toValue, Duration duration, FillBehavior fillBehavior) 132public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration) 145public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (4)
107public DoubleAnimation(Double toValue, Duration duration) 119public DoubleAnimation(Double toValue, Duration duration, FillBehavior fillBehavior) 132public DoubleAnimation(Double fromValue, Double toValue, Duration duration) 145public DoubleAnimation(Double fromValue, Double toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
107public Int16Animation(Int16 toValue, Duration duration) 119public Int16Animation(Int16 toValue, Duration duration, FillBehavior fillBehavior) 132public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration) 145public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (4)
107public Int32Animation(Int32 toValue, Duration duration) 119public Int32Animation(Int32 toValue, Duration duration, FillBehavior fillBehavior) 132public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration) 145public Int32Animation(Int32 fromValue, Int32 toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (4)
107public Int64Animation(Int64 toValue, Duration duration) 119public Int64Animation(Int64 toValue, Duration duration, FillBehavior fillBehavior) 132public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration) 145public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
447protected override sealed Duration GetNaturalDurationCore(Clock clock) 645Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
447protected override sealed Duration GetNaturalDurationCore(Clock clock) 645Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (4)
107public Point3DAnimation(Point3D toValue, Duration duration) 119public Point3DAnimation(Point3D toValue, Duration duration, FillBehavior fillBehavior) 132public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration) 145public Point3DAnimation(Point3D fromValue, Point3D toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (4)
107public PointAnimation(Point toValue, Duration duration) 119public PointAnimation(Point toValue, Duration duration, FillBehavior fillBehavior) 132public PointAnimation(Point fromValue, Point toValue, Duration duration) 145public PointAnimation(Point fromValue, Point toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (4)
107public QuaternionAnimation(Quaternion toValue, Duration duration) 119public QuaternionAnimation(Quaternion toValue, Duration duration, FillBehavior fillBehavior) 132public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration) 145public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (4)
107public RectAnimation(Rect toValue, Duration duration) 119public RectAnimation(Rect toValue, Duration duration, FillBehavior fillBehavior) 132public RectAnimation(Rect fromValue, Rect toValue, Duration duration) 145public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (4)
107public Rotation3DAnimation(Rotation3D toValue, Duration duration) 119public Rotation3DAnimation(Rotation3D toValue, Duration duration, FillBehavior fillBehavior) 132public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration) 145public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (4)
107public SingleAnimation(Single toValue, Duration duration) 119public SingleAnimation(Single toValue, Duration duration, FillBehavior fillBehavior) 132public SingleAnimation(Single fromValue, Single toValue, Duration duration) 145public SingleAnimation(Single fromValue, Single toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (4)
107public SizeAnimation(Size toValue, Duration duration) 119public SizeAnimation(Size toValue, Duration duration, FillBehavior fillBehavior) 132public SizeAnimation(Size fromValue, Size toValue, Duration duration) 145public SizeAnimation(Size fromValue, Size toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
447protected override sealed Duration GetNaturalDurationCore(Clock clock) 645Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (4)
107public Vector3DAnimation(Vector3D toValue, Duration duration) 119public Vector3DAnimation(Vector3D toValue, Duration duration, FillBehavior fillBehavior) 132public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration) 145public Vector3DAnimation(Vector3D fromValue, Vector3D toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (4)
107public VectorAnimation(Vector toValue, Duration duration) 119public VectorAnimation(Vector toValue, Duration duration, FillBehavior fillBehavior) 132public VectorAnimation(Vector fromValue, Vector toValue, Duration duration) 145public VectorAnimation(Vector fromValue, Vector toValue, Duration duration, FillBehavior fillBehavior)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
Core\CSharp\System\Windows\Media\Animation\ParallelTimeline.cs (9)
55public ParallelTimeline(TimeSpan? beginTime, Duration duration) 72public ParallelTimeline(TimeSpan? beginTime, Duration duration, RepeatBehavior repeatBehavior) 90protected override Duration GetNaturalDurationCore(Clock clock) 92Duration simpleDuration = TimeSpan.Zero; 108Duration childEndOfActivePeriod = children[childIndex].EndOfActivePeriod; 110if (childEndOfActivePeriod == Duration.Forever) 115return Duration.Forever; 117else if (childEndOfActivePeriod == Duration.Automatic) 136return Duration.Automatic;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
859internal bool IntersectsPeriodicCollection(TimeSpan beginTime, Duration period, double appliedSpeedRatio, 988internal bool IntersectsMultiplePeriods(TimeSpan beginTime, Duration period, double appliedSpeedRatio) 1034TimeSpan beginTime, TimeSpan endTime, Duration period, 1157Duration fillDuration, Duration period,
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (9)
82protected Timeline(Nullable<TimeSpan> beginTime, Duration duration) 101protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 416typeof(Duration), 419Duration.Automatic, 435public Duration Duration 439return (Duration)GetValue(DurationProperty); 696internal protected Duration GetNaturalDuration(Clock clock) 712protected virtual Duration GetNaturalDurationCore(Clock clock) 714return Duration.Automatic;
Core\CSharp\System\Windows\Media\Animation\TimelineGroup.cs (2)
55protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration) 72protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
84ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (4)
253bool locked = TryLock(Duration.Forever); 273public bool TryLock(Duration timeout) 278if (timeout == Duration.Automatic) 282else if (timeout == Duration.Forever)
Core\CSharp\System\Windows\Media\MediaPlayer.cs (1)
267public Duration NaturalDuration
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (2)
489internal Duration NaturalDuration 500return Duration.Automatic;
Core\CSharp\System\Windows\Media\MediaTimeline.cs (4)
84public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration) 97public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 240protected override Duration GetNaturalDurationCore(Clock clock) 245return Duration.Automatic;
PresentationFramework (16)
src\Framework\System\Windows\Controls\MediaElement.cs (1)
524public Duration NaturalDuration
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
288internal void SetupFadeAnimation(Duration duration, bool visible) 296internal void SetupTranslateAnimations(PopupAnimation animationType, Duration duration, bool animateFromRight, bool animateFromBottom)
src\Framework\System\windows\Documents\CaretElement.cs (1)
912Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
279case 187: t = () => typeof(Duration); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4003typeof(System.Windows.Duration),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5731case KnownElements.Duration: t = typeof(System.Windows.Duration); break;
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (4)
107public ThicknessAnimation(Thickness toValue, Duration duration) 119public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior) 132public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration) 145public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
480protected override sealed Duration GetNaturalDurationCore(Clock clock) 737Duration duration = Duration;
src\Framework\System\Windows\VisualStateManager.cs (1)
843private static readonly Duration DurationZero = new Duration(TimeSpan.Zero);
src\Framework\System\Windows\VisualTransition.cs (2)
58public Duration GeneratedDuration 90private Duration _generatedDuration = new Duration(new TimeSpan());
PresentationFramework.Aero (19)
Microsoft\Windows\Themes\BulletChrome.cs (6)
133Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 184Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 277Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 353Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 446Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 507Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
Microsoft\Windows\Themes\ButtonChrome.cs (6)
129Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 160Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 220Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 257Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 309Duration duration = new Duration(TimeSpan.FromSeconds(0.1)); 342Duration duration = new Duration(TimeSpan.FromSeconds(0.1));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
150Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 162Duration duration = new Duration(TimeSpan.FromSeconds(0.2));
Microsoft\Windows\Themes\ScrollChrome.cs (5)
119Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 156Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 231Duration duration = new Duration(TimeSpan.FromSeconds(0.2)); 254Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); 331Duration duration = new Duration(TimeSpan.FromSeconds(0.3));