WebBrowserTask为Windows Phone 8.1 [英] WebBrowserTask for Windows Phone 8.1

查看:225
本文介绍了WebBrowserTask为Windows Phone 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听起来像一个菜鸟,但这个问题真的没有走出我的脑海里,你应该尝试一下了。

I may sound like a noob, but this problem is really not getting out of my mind, you should try it too.

每当我添加Microsoft.P​​hone.dll到Windows Phone 8.1的一个新项目的WebBrowserTask控制,我得到了下面的错误。

whenever i add Microsoft.Phone.dll to a new project of Windows Phone 8.1 for the WebBrowserTask control, i get the following error.

和我有真的不知道如何解决这个问题。

And i have really no idea how to solve this.

<一个href="http://2.bp.blogspot.com/-esfQ3c5cZ80/U2KBD5JRDyI/AAAAAAAAAiQ/HyorukOc_a4/s1600/Screenshot+%286%29.png" rel="nofollow">http://2.bp.blogspot.com/-esfQ3c5cZ80/U2KBD5JRDyI/AAAAAAAAAiQ/HyorukOc_a4/s1600/Screenshot+(6).png

在previous版本(的Windows Phone 8)是全功能的,但是我们都知道,有许多变化WP8.1 SDK,因此,我不能够解决这个问题。

In previous versions (Windows Phone 8) it is fully functioning, but as we all know there are many changes in the WP8.1 SDK, therefore, i am not able to fix this issue.

推荐答案

如果您使用的是Windows商店应用程序项目(WP8.1 / Win8.1),WebBrowserTask类改为<一href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.aspx">Launcher类。

If you use Windows store apps project (WP8.1/Win8.1), WebBrowserTask class was replaced by Launcher class.

现在,你必须使用<一个href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.launchuriasync.aspx">LaunchUriAsync从启动类方法

Now you must use LaunchUriAsync method from Launcher class

一些有用的资源:

Some useful resources :

中的新增功能的Windows Phone 8.1

迁移你的Windows Phone 8应用程序在Windows运行XAML应用程序

这篇关于WebBrowserTask为Windows Phone 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆