In Windows Phone I have a PDF stored here:
ApplicationData.Current.LocalFolder / myfile.pdf
How can I open that PDF for viewing?
In Windows Phone I have a PDF stored here:
ApplicationData.Current.LocalFolder / myfile.pdf
How can I open that PDF for viewing?
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");
Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");
Windows.System.Launcher.LaunchFileAsync(pdfFile);