Osc*_*dez 5 pdf windows-phone-8
我有一些pdf文件(项目文件)我的应用程序,我想如何打开Adobe Reader或其他,但我不知道如何.
在iOS中更容易,在Android中我知道如何,但我不知道如何在WP8中.
我是Windows Phone 8的新手:/
谢谢大家!
你必须使用类的LaunchFileAsync方法Launcher.例:
// Access the file.
StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");
// Launch the pdf file.
Windows.System.Launcher.LaunchFileAsync(pdfFile);
Run Code Online (Sandbox Code Playgroud)
你会在这里找到更多信息:
使用Windows Phone 8的文件和URI关联自动启动应用程序