windows phone 8.0 中是否有显示重定向的控件 url

Is there a control in windows phone 8.0 that will show the redirect url

我有 URL,在重定向时应该 return 一个包含 "success" 或 "error" 的另一个 URL,但无论是网络浏览器控件还是网络任务, 都没有给出 return URL。 windows phone 8.0 中是否有控件可以帮助实现此目的。

我知道在 8.1 中我们有一个 webview 控件,它在其中工作起来非常棒,但我的项目是使用 VS2012 在 8.0 中构建的。使用 VS2013 将其转换为 8.1 对团队来说将是一项非常耗时的任务。

你为什么不使用 HttpClient?

HttpClient client = new HttpClient();
HttpResponseMessage response = await client.GetAsync("http://www.yahoo.com/");
response.EnsureSuccessStatusCode();
string responseUri = response.RequestMessage.RequestUri.ToString();

windows phone 8.0 中的 WebBrowser 控件与 IE 完全一样。与 IE 类似,您需要在 WebBrowser 控件中启用脚本,方法是在 xaml

中编写以下代码
<phone:WebBrowser Name="myBrowser" IsScriptEnabled="True" />

或者您可以通过转到属性并检查 IsScriptEnabled 属性 为真来执行相同的操作。