单击按钮后,我想打开默认的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应用程序可以在不打开页面的情况下打开默认浏览器吗?
发布评论