ThicknessAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) ThicknessAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) ThicknessAnimationUsingKeyFrames.GetNaturalDurationCore(Clock) Method

定義

Duration 屬性設定為 Automatic 時,提供自訂的自然 DurationProvide 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

參數

clock
Clock Clock Clock

需要其自然持續期間的 ClockThe Clock whose natural duration is desired.

傳回

如果這個動畫的最後一個主要畫面格是 KeyTime,則會使用這個值當成 NaturalDuration,否則會是一秒。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.

適用於

另請參閱