开发者

Windows Phone 7: Grab current url and use to Reload my browserpage

how can i refresh/reload my browserpage in my app? i have a webbrowser created to dinamically retrieve a random page from my site, now i want to capture the actual url and use it for the refresh button and for the "open in browser button".

开发者_JS百科

Basically i need to retrieve the current url and use it to refresh it: this is my question.

Thanks!


Assuming the webBrowser control is caleld EmbeddedBrowser.

Refresh:

EmbeddedBrowser.Navigate(EmbeddedBrowser.Source.AbsoluteUri);

Launch in IE:

var wbt = new WebBrowserTask
{
    URL = EmbeddedBrowser.Source.AbsoluteUri
};

wbt.Show();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜