暂停活动 [英] suspending event

查看:98
本文介绍了暂停活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

快速提问:什么时候挂起事件(由WebUIApplication对象触发)被引发?我已经构建了一个非常简单的应用程序,我正在尝试使用扩展的启动画面。我注意到激活的事件确实被触发了,但我没有从暂停事件中得到任何
。我已经尝试过使用任务管理器了,事实上我无法看到我的应用程序状态转换为暂停状态,就像操作系统中预装的默认win 8 metro应用程序一样。我预计在失去焦点并在后台停留几秒后,它会将
转换为暂停状态。我错了吗?

Quick question: when does the suspending event (fired by WebUIApplication object) gets raised? I've built a really simple app and I'm trying to use an extended splash screen. I've noticed that the activated event does get fired, but I'm not getting anything form the suspending event. I've tried using task manager and the truth is that I cannot see the state of my app being transitioned to suspended like it happens with the default win 8 metro apps that are preinstalled in the OS. I expected to see it transition to the suspended state after loosing focus and being in the background for a few seconds. am i wrong?

Am 我错过了什么?

Am  I missing something?

谢谢。

推荐答案

嘿路易斯,

我在VS中调试应用时看到了这个。 但是,VS会为您提供触发暂停的选项。 调试时只需从'Debug'菜单中选择'Trigger Suspend'。

I have seen this when debugging an app in VS.  VS however gives you an option to trigger the suspend.  When debugging simply choose 'Trigger Suspend' from the 'Debug' menu.

-Jeff


这篇关于暂停活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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