Export (0) Print
Expand All

CharAnimationUsingKeyFrames.GetNaturalDurationCore Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft