Share via


Time Property

Gets or sets the time at which this TimelineMarker is reached.

XAML
<object Time="TimeSpan" .../>
Scripting
value = object.Time
object.Time = value

Property Value

TimeSpan

The time at which this TimelineMarker is reached.

This property is read/write. The default value is null.

Remarks

The string format for specifying a TimeSpan is [days.]hours:minutes:seconds[.fractionalSeconds]. See TimeSpan.

The XAML syntax for TimelineMarker is mainly only relevant for a CreateFromXaml scenario. Populating the initial .Markers collection in XAML is permitted by the parser but has no effect because the .Markers collection is specific to a media source rather than to a MediaElement. For details, see TimelineMarker.

Applies To

TimelineMarker

See Also

Media Overview
MediaElement