SourceName Property
Collapse the table of content
Expand the table of content

VideoBrush.SourceName Property

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

Gets or sets the name of the MediaElement to use as the source of the VideoBrush.

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

'Declaration
Public Property SourceName As String
<VideoBrush SourceName="mediaElementname"/>

Property Value

Type: System.String
The name of the MediaElement to use as the source of the VideoBrush.

Dependency property identifier field: SourceNameProperty

The name is the Name or x:Name of a MediaElement as defined in XAML markup. To set the SourceName value in code at run time, make sure to get the Name property of the MediaElement rather than attempting to set to a MediaElement instance. Note that the Name of the MediaElement must already be defined in initial XAML; declaring a Name at run-time does not retroactively make the name available to XAML usages that attempt to refer to that name.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft