Metro应用程序可以在不打开页面的情况下打开默认浏览器吗?

编程入门 行业动态 更新时间:2024-10-06 20:38:00
本文介绍了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应用程序可以在不打开页面的情况下打开默认浏览器吗?

本文发布于:2023-11-12 21:14:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582541.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   情况下   浏览器   页面   Metro

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!