Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ColorAnimationUsingKeyFrames.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
)

Parameters

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
Show:
© 2017 Microsoft