SetSource Method (MediaElement)
Collapse the table of content
Expand the table of content

VideoBrush.SetSource Method (MediaElement)

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

Sets the source of the VideoBrush using a media file source from an intermediary MediaElement control.

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

'Declaration
Public Sub SetSource ( _
	source As MediaElement _
)

Parameters

source
Type: System.Windows.Controls.MediaElement
The intermediary MediaElement control used as the source for the VideoBrush.

You typically use SetSource rather than SourceName for cases where the MediaElement source is not already declared in markup and is instead instantiated in code.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft