PlaySoundAction.Source Property
Gets or sets the location of the sound file. This is used to set the source property of a MediaElement. This is a dependency property.
Namespace: Microsoft.Xaml.Interactions.Media
Assembly: Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)
Syntax
'Declaration
Public Property Source As String
public string Source { get; set; }
public:
property String^ Source {
String^ get ();
void set (String^ value);
}
member Source : string with get, set
function get Source () : String
function set Source (value : String)
Property Value
Type: System.String
The location of the sound file.
Remarks
The sound can be any file format supported by MediaElement. In the case of a video, it will play only the audio portion.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.