BooleanAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) Methode

Definition

Stellen Sie eine benutzerdefinierte natürliche Duration Eigenschaft bereit, wenn die Duration Eigenschaft auf 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

Parameter

clock
Clock

Die Clock natürliche Dauer ist erwünscht.

Gibt zurück

Wenn der letzte Keyframe dieser Animation ein KeyTimeist, wird dieser Wert als der NaturalDuration; andernfalls eine Sekunde verwendet.

Gilt für:

Weitere Informationen