小编Osc*_*dez的帖子

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

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

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

我是Windows Phone 8的新手:/

谢谢大家!

pdf windows-phone-8

5
推荐指数
1
解决办法
1万
查看次数

我可以在LongListMultiSelector中更改CheckBox颜色吗?WP8

我需要在Windows Phone 8中更改LongListMultiSelector的CheckBox的颜色,因为我的背景为白色,这是可能的吗?

谢谢.

CheckBox图片

checkbox longlistselector windows-phone-8

2
推荐指数
1
解决办法
3599
查看次数

在Windows Phone 8中读取文件:值不在预期范围内

打开存储在项目中的文件时,我确实遇到了问题.我需要打开一些文件(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)

c# readfile windows-phone-8

1
推荐指数
1
解决办法
6919
查看次数

标签 统计

windows-phone-8 ×3

c# ×1

checkbox ×1

longlistselector ×1

pdf ×1

readfile ×1