在Windows Phone 7上禁用自动锁定屏幕 [英] Disable screen from autolocking on Windows Phone 7

查看:70
本文介绍了在Windows Phone 7上禁用自动锁定屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户一段时间不与设备互动,我需要防止屏幕自动锁定自身.

I need to prevent the screen from automatically locking itself if the user dont interact with the device for a while.

在运行我的应用程序时是否可以请求某种锁定以使屏幕保持打开状态?

Is it possible to request some kind of lock to keep the screen on while running my application?

推荐答案

是的,您可以通过禁用UserIdleDetection来实现.

Yes, you can do this by disabling UserIdleDetection.

此处提供了示例和更多背景信息.

Samples and more background info here.

PhoneApplicationService.UserIdleDetectionMode属性(Microsoft.Phone.Shell)

Windows Phone的空闲检测

这篇关于在Windows Phone 7上禁用自动锁定屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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