WebBrowserTask为Windows Phone 8.1Windows、WebBrowserTask、Phone

由网友(感觉、快抓不住你了)分享简介:我听起来像一个菜鸟,但这个问题真的没有走出我的脑海里,你应该尝试一下了。I may sound like a noob, but this problem is really not getting out of my mind, you should try it too.每当我添加Microsoft.P​​ho...

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

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.

https://p.xsw88.cn/allimgs/daicuo/20230905/934.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类改为Launcher类。

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

现在,你必须使用LaunchUriAsync从启动类方法

Now you must use LaunchUriAsync method from Launcher class

一些有用的资源:的

Some useful resources :

中的新增功能的Windows Phone 8.1

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

阅读全文

相关推荐

最新文章