如何在windowsphone中关闭屏幕?

How to turn the screen off in windows phone?

我已经搜索过了,但找不到答案。

我发现的是如何让屏幕保持活动状态。

我想尝试编写

的 uwp

当我点击一个按钮时,屏幕将被关闭。

有什么功能吗?

感谢您的回复!

答案是。您无法通过您的应用关闭屏幕。

Microsoft 不允许应用程序这样做。 API 不支持这个。即使您使用了一些技巧,此类应用程序也会从商店中删除。

关于您在 Whosebug 中的问题an answer

Microsoft certification will not allow application to do so, even though if your able to do with some hacks. You cant turn off the screen from your application. This type of app cannot be made for Windows Phone, the API's do not exist, and if someone found a workaround it would be removed from the store. Unfortunately non of the developers have developed such app for windows