Modifier

Partager via


VectorAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) Method

Definition

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

protected:
 override System::Windows::Duration GetNaturalDurationCore(System::Windows::Media::Animation::Clock ^ clock);
protected override sealed System.Windows.Duration GetNaturalDurationCore (System.Windows.Media.Animation.Clock clock);
override this.GetNaturalDurationCore : System.Windows.Media.Animation.Clock -> System.Windows.Duration
Protected Overrides NotOverridable Function GetNaturalDurationCore (clock As Clock) As Duration

Parameters

clock
Clock

The Clock whose natural duration is desired.

Returns

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.

Applies to

See also