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.
Assembly: System.Windows (in System.Windows.dll)
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.
Show: