Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaTimeline Constructor (Nullable<TimeSpan>, Duration, RepeatBehavior)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the MediaTimeline class that begins at the specified time over the specified time and has the specified repeat behavior.

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

public MediaTimeline(
	Nullable<TimeSpan> beginTime,
	Duration duration,
	RepeatBehavior repeatBehavior


Type: System.Nullable<TimeSpan>

The time to begin media playback.

Type: System.Windows.Duration

The length of time for media playback.

Type: System.Windows.Media.Animation.RepeatBehavior

The repeat behavior to use when the playback duration has been reached.

.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft