Export (0) Print
Expand All

BufferingProgressChanged Event

Occurs when the BufferingProgress property changes.

XAML
<object BufferingProgressChanged="eventhandlerFunction" .../>
Scripting
[token = ]object.AddEventListener("BufferingProgressChanged", eventhandlerFunction)

AddEventListener Parameters

token

integer

A token that is returned from the function, which you can optionally retain as a variable. If you intend to call RemoveEventListener to remove the handler, you will need this token.

eventhandlerFunction

object

The name of your event handler function as it is defined in script. When used as an AddEventListener parameter, quotes around the function name are not required. See Remarks.

Event Handler Parameters

sender

object

Identifies the object that invoked the event.

eventArgs

object

This parameter is always set to null.

Remarks

You can also add handlers in script using a quoted string for the event handler name:

object.AddEventListener("BufferingProgressChanged", "eventhandlerFunction")

This syntax also returns a token; however, the token is not an absolute requirement for removing the handler, in cases where the handler was added by using a quoted string. For details, see RemoveEventListener.

The event will occur when the BufferingProgress changes by 0.05 or more and when it reaches 1.0.

Applies To

MediaElement

See Also

Silverlight Events
BufferingProgress

Community Additions

Show:
© 2014 Microsoft