Windows 10:如何防止切换或关闭应用程序

问题描述:

我正在为 Windows 10 设备开发应用.该设备将在公共场所暴露给用户,其硬件按钮将无法访问.如何防止用户使用触摸屏手势关闭我的应用程序?

I'm developing an app for a Windows 10 device. This device will be exposed to users in a public place and its hardware buttons will be inaccessible. How can I prevent a user from closing my application using touchscreen gestures?

使用分配的访问权限设置您的应用程序:http://www.winbeta.org/news/setup-assigned-access-windows-10-kiosk-mode

Set up your application with Assigned Access: http://www.winbeta.org/news/setup-assigned-access-windows-10-kiosk-mode

这将允许您在用户登录后立即启动您的应用程序,并且没有人能够退出/关闭/切换应用程序.

This will allow you to have your application launched as soon as the user is logged and nobody will be able to exit/close/switch the app.