RectAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) Methode

Definition

Stellt eine benutzerdefinierte interne Duration bereit, wenn die Duration-Eigenschaft auf Automatic festgelegt ist.

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

Parameter

clock
Clock

Die Clock, deren natürliche Dauer gewünscht wird.

Gibt zurück

Duration

Ist der letzte Keyframe dieser Animation eine KeyTime, wird dieser Wert als NaturalDuration verwendet, andernfalls wird der Wert auf eine Sekunde festgelegt.

Gilt für

Siehe auch