PlaySoundAction 类
一项将播放表示完成的声音的操作。
命名空间: Microsoft.Expression.Interactivity.Media
程序集: Microsoft.Expression.Interactions(在 microsoft.expression.interactions.dll 中)
语法
声明
Public Class PlaySoundAction
Inherits TriggerAction(Of DependencyObject)
用法
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>
注解
此操作旨在与无需停止或控制的短暂声音效果配合使用。如果您尝试创建音乐播放器或游戏,它可能无法满足您的需求。
继承层次结构
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
线程安全性
此类型的任何公共静态(Visual Basic 中的 Shared )成员都是线程安全的。不保证任何实例成员都是线程安全的。
另请参阅
参考
PlaySoundAction 成员
Microsoft.Expression.Interactivity.Media 命名空间