如何立即关闭WebBrowserTask类. [英] how to close WebBrowserTask class instant.

查看:56
本文介绍了如何立即关闭WebBrowserTask类.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我创建了一个"WebBrowserTask"即时消息, XNA中的类,因为下面给出了源代码.

I crated a instant of "WebBrowserTask" class in XNA  as source code is given bellow.

在应用程序中显示浏览器后,我需要从应用程序中删除浏览器,但是我没有找到用于删除浏览器的任何方法&还告诉我如何导航到WebBrowserTask的即时方法.请任何一项建议删除或 从应用程序中删除浏览器.

After displaying the browser in the app, I need remove the browser from the app but I didn't fined any method for removing the browser & also tell me how navigation method to the WebBrowserTask instant. Please any one suggestion to delete or remove the browser from the app.

推荐答案

我假设您的意思是实例".在WP中,我们的概念是启动器和选择者". WebBrowserTask是启动器的一个示例,当显示该启动器时,它只是使您的应用处于停用状态,而外部任务(Web浏览器)现在是活动的参与者.如果 可以理解,您的应用程序不再由WebBrowserTask内部的事务负责.因此,它不能被杀死.用户必须通过按硬件后退键来确认他已完成操作.这自然是很自然的,应该像 那个

如果有可能,我将打开一个网络浏览器任务,将用户带到XYZ网站并关闭它.这是为了让您了解安全漏洞. (但是如果有人让我知道我可能已经强调了一种潜在的非法行为可能性 :) )

I assume you mean "instance". In WP we have the concept of "Launchers & Choosers". WebBrowserTask is an example of Launcher which when shown simply puts your app in deactivated state and an external task (web browser) is now the active participant. If that's understood, your application is no longer the in-charge of what goes on inside WebBrowserTask. Thus, it can't be killed. The user must confirm he is done by pressing hardware back key. Which is pretty much the natural flow and should be like that.

If it would be possible, I'll open a web browser task, take user to an XYZ site and close it. That's for you to understand the security breach. (If someone else however lets me know that it is possible I have highlighted a potential illegal action possibility :) )


这篇关于如何立即关闭WebBrowserTask类.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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