PlaySoundAction

The PlaySoundAction action plays a sound when a specified action is triggered.

To add a PlaySoundAction to a Windows Phone project

  1. In the Assets panel, click Behaviors, and then drag PlaySoundAction onto the object that you want to apply the action to. The Common Properties category appears in the Properties panel.

  2. In the Common Properties category, in the Source drop-down list, select the sound file that you want, or click Browse to locate a sound file.

    PlaySoundAction for Windows Phone

  3. In the Common Properties category, in the Volume box, type a number between 0 and 1, where 0 is no volume, and 1 is full volume.

To see a sample of this behavior, visit the Expression Community Gallery Ff979348.xtlink_newWindow(en-us,Expression.40).png.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.