且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows Phone 8中打开pdf文件?

更新时间:2023-11-08 10:43:22

您必须使用Launcher类的rel =" nofollow> LaunchFileAsync 方法.示例:

You have to use the LaunchFileAsync method of Launcher class. Example:

// Access the file.
StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");

// Launch the pdf file.
Windows.System.Launcher.LaunchFileAsync(pdfFile);

您将在此处找到更多信息:

You will find more info here:

自动启动应用在Windows Phone 8中使用文件和URI关联