簡體   English   中英

在Windows Phone 8應用程序中從隔離存儲中讀取和顯示PDF文件

[英]Read and Display PDF file from Isolated Storage in a windows phone 8 app

我想從隔離存儲中讀取Pdf文件並在pdf查看器中顯示它。 但據我所知,Windows Phone 8沒有pdf控件。 我可以使用任何第三方控件嗎? 或者是否有任何其他方式在Windows Phone 8應用程序中顯示pdf文件。

你有三條路線:

  1. 啟動pdf,這將導致它在另一個應用程序中打開
  2. 支付已經實現的控件,例如控件。 注意他們如何將一堆東西捆綁在一起,所以你不會只是得到一個pdf查看器
  3. 制作自己的pdf查看器,這絕對是最難的方式。

編輯:如何啟動與文件關聯的應用:

StorageFolder folder = ApplicationData.Current.LocalFolder;
StorageFile file = await folder.GetFileAsync(<filename>);
Launcher.LauncheFileAsync(file);

您可以從任何需要的地方撥打電話。

// get the assets folder for the app
StorageFolder folder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Folder");

// get the file included in app "Folder"
StorageFile file = await folder.GetFileAsync("test.pdf");

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM