Metro应用程序可以在不打开页面的情况下打开默认浏览器吗? [英] Can a metro app open the default browser without opening a page?

查看:84
本文介绍了Metro应用程序可以在不打开页面的情况下打开默认浏览器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击按钮后,我想打开默认的Metro浏览器(通常是IE)而不打开新的标签页/页面,只需打开浏览器,如果它已经在运行,则只需切换到当前状态即可.有办法吗?

On button click I want to open the default metro browser (usually IE) without opening a new tab/page, just open the browser, If it is already running then just switch to it as it is to it's current state. Is there a way to do that?

推荐答案

这只是要尝试的方法,在您的情况下可能会或可能不会起作用:

This is just something to try, and may or may not work in your scenario:

如果您知道在浏览器中打开的URL,则Windows Store应用程序可以使用启动器启动该URL.

If you know the url that is open in the browser, your Windows Store app could launch that same url with the launcher.

在我的应用中,当我多次启动相同的URL时,IE将弹出,但不会加载该URL的第二个实例.

In my app, when I launch the same url multiple times, IE will pop up but will not load a second instance of the url.

这篇关于Metro应用程序可以在不打开页面的情况下打开默认浏览器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆