PlaySoundAction Class

An action that will play a sound to completion.

Namespace: Microsoft.Expression.Interactivity.Media
Assembly: Microsoft.Expression.Interactions (in microsoft.expression.interactions.dll)

Syntax

'Declaration
Public Class PlaySoundAction
    Inherits TriggerAction(Of DependencyObject)
'Usage
Dim instance As PlaySoundAction
public class PlaySoundAction : TriggerAction<DependencyObject>
public ref class PlaySoundAction : public TriggerAction<DependencyObject^>
public class PlaySoundAction extends TriggerAction<DependencyObject>
public class PlaySoundAction extends TriggerAction<DependencyObject>

Remarks

This action is intended for use with short sound effects that don't need to be stopped or controlled. If you're trying to create a music player or game, it may not meet your needs.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
           System.Windows.Interactivity.TriggerAction
             System.Windows.Interactivity.TriggerAction
              Microsoft.Expression.Interactivity.Media.PlaySoundAction

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PlaySoundAction Members
Microsoft.Expression.Interactivity.Media Namespace