MediaTimelineController.Duration MediaTimelineController.Duration MediaTimelineController.Duration MediaTimelineController.Duration MediaTimelineController.Duration Property

Definition

Gets a value indicating the duration of the timeline. After the specified time span has elapsed, the timeline clock will no longer progress.

public : IReference<TimeSpan> Duration { get; set; }
IReference<TimeSpan> Duration();

void Duration(IReference<TimeSpan> duration);
public Nullable<TimeSpan> Duration { get; set; }
Public ReadWrite Property Duration As Nullable<TimeSpan>
var nullable = mediaTimelineController.duration;
mediaTimelineController.duration = nullable;

Property Value

Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>

A value indicating the duration of the timeline.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

The Ended event is raised when the timeline controller reaches the end of the Duration time window.