Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Windows 8 (WinRT) Lock Screen

This is how you do it on Windows Phone http://blog.jerrynixon.com/2011/11/mango-sample-lock-and-run.html

That is NOT how you do it Windows 8.

Is there a way to do it in Windows 8 apps, too?

like image 488
Jerry Nixon Avatar asked May 17 '12 20:05

Jerry Nixon


1 Answers

Check out the Windows.System.Display.DisplayRequest class. The requestActive method allows you to keep the display active when it would otherwise be dimmed and turned off. Be sure to call requestRelease once for each time that you call requestActive so that the display can get back to its power-conscious behavior when you no longer need it to stay on.

like image 80
brantonb Avatar answered Nov 15 '22 11:11

brantonb