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

PlaySoundAction.Execute Method

Executes the action.

Properties

Name

Description

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.

PlaySoundAction.Volume 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

PlaySoundAction.SourceProperty Field

Identifies the Volume dependency property.

PlaySoundAction.VolumeProperty Field

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.

See Also

Reference

PlaySoundAction Class

Microsoft.Xaml.Interactions.Media Namespace