如何将我的网址www.facebook.com链接到我的超链接按钮,并且该链接应该载入我的应用程序页面。在windows 8中放置一个链接metro风格的应用程序
回答
您只能在WebView
控件中加载网页。把它放在你的页面上第一:
<WebView x:Name="MyWebView" />
在你Hyperlink
加载页面的点击事件处理程序到这个WebView
:
private void Hyperlink_OnClick(object sender, RoutedEventArgs e)
{
MyWebView.Navigate(new Uri("http://www.facebook.com"));
}
Process.Start(“http://facebook.com”);这将加载默认浏览器在facebook.com这是你所需要的?
发射器类怎么样?您可以使用Launcher类在默认处理程序中启动文档,即使用默认浏览器加载网站,从我所了解的您无法创建流程的角度来看。
async void DefaultLaunch()
{
// Path to the file in the app package to launch
string imageFile = @"images\test.png";
var file = wait Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(imageFile);
if (file != null)
{
// Launch the retrieved file
var success = await Windows.System.Launcher.LaunchFileAsync(file);
if (success)
{
// File launched
}
else
{
// File launch failed
}
}
else
{
// Could not find file
}
}
我想放置社交网站的所有图标,当用户点击fb图标,它应该加载http://facebook.com,我在c#和xaml – user2056575 2013-02-09 07:00:50
你想要它加载用户默认浏览器或创建某种Web视图? – Guernica 2013-02-09 07:03:18
它应该加载在我的应用程序页面中,而不是在用户网页或默认浏览器中 – user2056575 2013-02-09 07:23:41
- 1. 在Windows 8 Metro绑定超链接到richtextblock Metro应用程序
- 2. Windows 8开发中的Metro风格应用程序的DataBase?
- 3. Windows 8的Metro风格应用程序样本
- 4. Windows 8 metro风格的图表控件应用程序
- 5. Windows 8 Metro风格的应用程序安装
- 6. VC++ Metro风格应用程序Windows
- 7. 我可以在Windows 7中执行Windows 8 Metro风格的应用程序吗?
- 8. Windows 8 Metro风格应用程序 - 编辑Word文档
- 9. jQuery和Windows 8 JavaScript Metro风格应用程序
- 10. 如何在Windows 8 metro风格的应用程序中获得网络响应?
- 11. Windows 8 Phone应用程序和Metro风格应用程序有什么区别?
- 12. 在Windows 8.1中的Metro风格应用
- 13. 在Windows 8 Metro风格应用程序中绑定到控件的FocusState
- 14. 在Metro风格的应用程序
- 15. 如何让Ninject在WIndows 8 metro风格应用程序中工作
- 16. Windows 8 metro风格应用程序开发中不存在System.Diagnostics.PerformanceCounter吗?
- 17. Windows 8 Mobiles应用程序和Windows 8 metro风格应用程序有什么区别
- 18. 在Windows 8 Metro应用程序中拖放图像
- 19. Metro风格的Silverlight应用程序
- 20. 在windows 8 metro风格的应用程序中使用什么来代替webclient的应用程序
- 21. Windows移动电话上的Windows metro风格应用程序
- 22. Windows 8的Metro风格的列表框
- 23. Windows 8 metro应用程序按编程风格按钮样式C#
- 24. 如何迁移WP7应用到Windows 8 Metro风格应用
- 25. Windows 8 metro风格的免费位图内存javascript/html5应用程序
- 26. Windows 8 Metro应用程序 - 渲染PNGs
- 27. Windows 8 Metro应用程序Iframe
- 28. DateTime.Now - Metro应用程序 - Windows 8
- 29. HtmlAgilityPack和Windows 8 Metro应用程序
- 30. SQlite与Windows 8 Metro应用程序
第二句似乎与第一个冲突。也许这根本不需要? – Tshepang 2013-02-09 07:10:43