Windows应用商店使用默认网址 [英] windows store app with default URL
本文介绍了Windows应用商店使用默认网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是C#编码的新手,我正在开发一个Windows应用商店应用,当我点击地铁上的瓷砖(应用按钮)时,应用应该使用默认网址加载。用于显示网页。没有必要做任何其他事件只是为了显示网页,请有人帮助我。
hi i''m new to C# coding , i''m developing an windows store app in which when i click tile (app button) on metro the app should load with a default URL. which is used to show a webpage. no need to do any other events just to show "webpage" please somebody help me with this.
推荐答案
参见 http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx [ ^ ]。
首先创建一个xaml文件。
然后通过拖放工具栏放置webview控件。
first create a xaml file.
then place a webview control by drag and drop from toolbar.
within
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
插入此语法:webviewname.Navigate(new Uri(http://www.bing.com) ));
例如:
insert this syntax : webviewname.Navigate(new Uri("http://www.bing.com"));
eg:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
webview1.Navigate(new Uri("http://www.bing.com"));
}
这篇关于Windows应用商店使用默认网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文