Modifica

Condividi tramite


Timeline.GetNaturalDurationCore(Clock) Method

Definition

Returns the length of a single iteration of this Timeline. This method provides the implementation for GetNaturalDuration(Clock).

protected:
 virtual System::Windows::Duration GetNaturalDurationCore(System::Windows::Media::Animation::Clock ^ clock);
protected virtual System.Windows.Duration GetNaturalDurationCore (System.Windows.Media.Animation.Clock clock);
abstract member GetNaturalDurationCore : System.Windows.Media.Animation.Clock -> System.Windows.Duration
override this.GetNaturalDurationCore : System.Windows.Media.Animation.Clock -> System.Windows.Duration
Protected Overridable Function GetNaturalDurationCore (clock As Clock) As Duration

Parameters

clock
Clock

The Clock that was created for this Timeline.

Returns

The length of a single iteration of this Timeline, or Automatic if the natural duration is unknown.

Remarks

This method provides the implementation for GetNaturalDuration and should not be called directly from your code. Use GetNaturalDuration instead.

Notes to Inheritors

This method should be implemented by timeline classes that need to provide a custom natural Duration when the Duration property is set to Automatic. If the author cannot determine the natural duration, this method should return Automatic.

Applies to

See also