且构网

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

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

更新时间:2023-11-08 11:18:04

你必须使用 LaunchFileAsync Launcher 类的方法.示例:

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 关联