Freigeben über


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

See Also

Reference

PlaySoundAction Class

Microsoft.Xaml.Interactions.Media Namespace