如何在 windows phone 8 中打开文本文档、.docx 和 .xls 文档,我将文件保存在隔离存储中,然后尝试使用 Launcher.FileAsync 打开但没有得到结果。有关更多信息,请参阅下面的我的代码:
string file = "Download.txt";
IsolatedStorageFileStream isfStream = new IsolatedStorageFileStream(file, FileMode.Create, IsolatedStorageFile.GetUserStoreForApplication());
isfStream.Close();
StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile pdffile = await local.GetFileAsync(file);
Windows.System.Launcher.LaunchFileAsync(pdffile);