I am playing a sound like this:
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream stream;
stream = isoStore.OpenFile(fileName, FileMode.Open);
SoundEffect effect = SoundEffect.FromStream(stream);
FrameworkDispatcher.Update();
effect.Play();
Is there a way to get notified when playing has finished? I would need this to disable the play button while playing and then enable it back again when finished.
You can use
effect.Durationpropetry to setbutton.Enableplay button by timer.