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

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

问题描述:

我的应用程序内部有一些pdf文件(项目文件),我想如何在Adobe Reader或其他应用程序中打开文件,但我不知道如何打开.

I have some pdf files inside (the project files) my app and I wanted how to open in Adobe Reader or the other, but I don't know how.

在iOS中更容易,在Android中我知道如何,但是我不知道WP8中如何.

In iOS is more easy and in Android I know how, but I don't know how in WP8.

我是Windows Phone 8的新手:/

I'm new in Windows Phone 8 :/

谢谢大家!

您必须使用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关联