WindowsPhone8程序锁屏后继续运行和屏幕常亮

Posted by baicai on July 23, 2014

锁屏后继续运行:

PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;

屏幕常亮

PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;