我有一些pdf文件(项目文件)我的应用程序,我想如何打开Adobe Reader或其他,但我不知道如何.
在iOS中更容易,在Android中我知道如何,但我不知道如何在WP8中.
我是Windows Phone 8的新手:/
谢谢大家!
我需要在Windows Phone 8中更改LongListMultiSelector的CheckBox的颜色,因为我的背景为白色,这是可能的吗?
谢谢.

打开存储在项目中的文件时,我确实遇到了问题.我需要打开一些文件(pdf,html,...)并且遇到同样的问题:值不在预期范围内.
我尝试了几种方法:
一个)
private async Task<string> ReadFileContentsAsync(string fileName)
{
StorageFolder foldera = ApplicationData.Current.LocalFolder;
try
{
Stream filea = await foldera.OpenStreamForReadAsync("/Assets/Data/htm/" + fileName + ".htm");
...
}
catch (Exception e)
{
Debug.WriteLine("ERROR ReadFileContentsAsync " + e.Message);
return null;
}
}
Run Code Online (Sandbox Code Playgroud)
b)
private async Task<string> ReadFileContentsAsync(string fileName)
{
try
{
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(
new Uri("ms-appdata:///Assets/Data/htm/" + fileName + ".htm", UriKind.RelativeOrAbsolute));
...
}
catch (Exception e)
{
Debug.WriteLine("ERROR ReadFileContentsAsync " + e.Message);
return null;
}
}
Run Code Online (Sandbox Code Playgroud)
C)
StorageFile file2 …Run Code Online (Sandbox Code Playgroud)