Windows 8 Winrt 应用程序进入后台或关闭应用程序、后台、Windows、Winrt

2023-09-06 05:47:59 作者:没有祢゛左心房都安静ろ

如何判断 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:

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