BufferingTime Property

MediaElement.BufferingTime Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the amount of time to buffer. The value of this property is ignored on Windows Phone OS 7.1 and Windows Phone OS 8.0.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public TimeSpan BufferingTime { get; set; }
<MediaElement BufferingTime="[days.]hours:minutes:seconds[fractionalSeconds]"/>

XAML Values


Optional. An integer value greater than or equal to 0 that specifies the number of days.


Required, even if 0. An integer value between 0 and 23 that specifies the number of hours.


Optional if only hours are desired, but needs to be at least set to 0 if you intend to set a seconds value. A value between 0 and 59 that specifies the number of minutes.


Optional if only hours/minutes are desired. An integer value between 0 and 59 that specifies the number of seconds.


Optional. A floating point value between 0 and 1 consisting of 1 to 7 digits that specifies fractional seconds.

  • In the grammar, [] indicates optional values, the [] are not literals. The : (colon) character is a literal, and delimits the h:m:s string form of a common timespan, or the optional days and fractionalSeconds values.

  • The required and optional aspects of these parts of a timespan reflect the consideration that without at least 0 values, the string conversion cannot know what part of the h:m:s portion of the timespan you intend to set.

Property Value

Type: System.TimeSpan
The amount of time to buffer. The default value is a TimeSpan with value of 5 seconds (0:0:05).

Dependency property identifier field: BufferingTimeProperty

The value of BufferingTime has no effect on VC-1 content.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft