Windows 8 Winrt应用程序进入后台或关闭 [英] Windows 8 Winrt Application goes to background or close

查看:179
本文介绍了Windows 8 Winrt应用程序进入后台或关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何知道Windows 8 Metro应用程序何时进入后台?暂停状态不会激活.我有一个转折点.只有在我关闭应用程序后,它才会命中.

How can you tell when a windows 8 Metro app gets put in the background? The suspended state doesn't activate. I have a break point on. It only hits if I close the app.

我正在使用网络摄像头,因为没有应用程序可以在后台运行,所以当我将其置于后台时,我需要保存我的工作.

I am using a webcam and since no apps can run in the background I need to save my work when it's put in the background.

已停用应用程序的Windows Phone.

The windows phone it was application deactivated.

任何帮助都很好.

推荐答案

在调试器中,应用程序通常不会挂起.但是,您可以通过以下方法强制在调试时暂停 :

Apps do not normally get suspended when in the debugger. However, you can force a suspend when debugging by:

  1. 启用调试位置"工具栏(下图中的红色箭头).
  2. 然后按Suspend按钮(蓝色箭头).

这篇关于Windows 8 Winrt应用程序进入后台或关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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