Silverlight 5 | WinRT |
public class SoundPlayer | |
: Component, IComponent, IDisposable, ISerializable | |
public Boolean IsLoadCompleted { get; } | |
public Int32 LoadTimeout { get; set; } | |
public String SoundLocation { get; set; } | |
public Stream Stream { get; set; } | |
public Object Tag { get; set; } | |
public event AsyncCompletedEventHandler LoadCompleted; | |
public event EventHandler SoundLocationChanged; | |
public event EventHandler StreamChanged; | |
public void Load(); | |
public void LoadAsync(); | |
protected virtual void OnLoadCompleted(AsyncCompletedEventArgs e); | |
protected virtual void OnSoundLocationChanged(EventArgs e); | |
protected virtual void OnStreamChanged(EventArgs e); | |
public void Play(); | |
public void PlayLooping(); | |
public void PlaySync(); | |
public void Stop(); |
public class SystemSound | |
public void Play(); |
public sealed class SystemSounds | |
static public SystemSound Asterisk { get; } | |
static public SystemSound Beep { get; } | |
static public SystemSound Exclamation { get; } | |
static public SystemSound Hand { get; } | |
static public SystemSound Question { get; } |