How to disable Suspending || Closing || Terminating event for my Metro Style App on Windows 8 Pro

后端 未结 2 672
囚心锁ツ
囚心锁ツ 2020-12-07 05:21

I\'m a french developer and I need to develop an Metro Style app for Windows 8 Pro who is always launched. I wanted to know how can I disable the close event of my app. My a

相关标签:
2条回答
  • 2020-12-07 05:42

    The short answer is: You can't.

    The operating system and the user control the lifetime of Metro Style apps, you can't block the user from switching away from your app and once your app is no longer in the foreground, the application is suspended and the system can terminate the application at any moment.

    Similarly, the user close gesture cannot be blocked.

    0 讨论(0)
  • 2020-12-07 06:06

    In Windows 8.1 you may find Kiosk Mode to be what you need.

    0 讨论(0)
提交回复
热议问题