DoubleAnimationUsingKeyFrames.GetNaturalDurationCore Method (Clock)


Provide a custom natural Duration when the Duration property is set to Automatic.

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

protected override sealed Duration GetNaturalDurationCore(
	Clock clock


Type: System.Windows.Media.Animation.Clock

The Clock whose natural duration is desired.

Return Value

Type: System.Windows.Duration

If the last key frame of this animation is a KeyTime, then this value is used as the NaturalDuration; otherwise it will be one second.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft