PlaySoundAction Class
An action that will play a sound to completion.
Namespace: Microsoft.Xaml.Interactions.Media Namespace
Assembly: Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)
public ref class PlaySoundAction sealed : ::Windows::UI::Xaml::DependencyObject, ::Microsoft::Xaml::Interactivity::IAction
Methods
Name |
Description |
Executes the action. |
Properties
Name |
Description |
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. |
|
Gets or set the volume of the sound. This is used to set the Volume property of the MediaElement. This is a dependency property. |
Fields
Name |
Description |
Identifies the Volume dependency property. |
|
Identifies the Volume dependency property. |
Remarks
This action is intended for use with short sound effects that don't need to be stopped or controlled. If you are trying to create a music player or game, it may not meet your needs.