Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetNaturalDurationCore Method

MediaTimeline.GetNaturalDurationCore Method

Retrieves the Duration from a specified clock.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

protected override Duration GetNaturalDurationCore(
	Clock clock
)

Parameters

clock
Type: System.Windows.Media.Animation.Clock

The Clock whose natural duration is desired.

Return Value

Type: System.Windows.Duration
If clock is a MediaClock, the NaturalDuration value of the MediaPlayer associated with clock, or Automatic if the clock is not a MediaClock.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft