Timeline.GetNaturalDurationCore(Clock) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.