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

查看:27
本文介绍了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. 然后按暂停按钮(蓝色箭头).

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

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