我想影响我在 Microsoft.FrameWorck.Media.Song 中读取的隔离存储流,我已经完成了以下代码:
public void Restory()
{
` Media.ClearValue(MediaElement.SourceProperty);
using (IsolatedStorageFile ISF = solatedStorageFile.GetUserStoreForApplication())
{
if (ISF.FileExists(MainPage.filename))
using (IsolatedStorageFileStream FS = ISF.OpenFile(MainPage.filename,FileMode.Open))
{
this.Media.SetSource(FS);
Media.Play();
//Media is Mediaenlement But in this step
i want to put that stream in Microsoft.Xna.FrameWorck.Media.Song
}
}
}