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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With