When my app is running in Windows 8 WINRT can I prevent the OS to go to locked screen/sleep mode?
相关问题
- Inheritance impossible in Windows Runtime Componen
- How do I create a multidimensional array of object
- Listview applies a check to other listview items h
- Replacing or recreating a file in Windows 8 RT kee
- Save Image to file keeping aspect ratio in a WPF a
相关文章
- Working with hmacsha256 in windows store app
- Show flyout using BottomAppBar
- Get English exception message instead of local lan
- Can the “dynamic” type vary safely in a generic co
- How to remove an element from an IGrouping
- Exception when reading text from the file using Fi
- Check if a datetime is in same week as other datet
- HttpUtility.HtmlDecode in WinRT
You cannot prevent OS to go to lock screen/sleep/shut-down etc. If you want your application to run behind the scenes, you may want to create a Background Task application. You can find more information at: MSDN Link
You can use the DisplayRequest class to indicate that you are busy playing back something that requires the display to stay active and un-dimmed. A good how-to article with sample code is available here. Don't use it frivolously, it is quite detrimental to power consumption. Good odds that the Store will reject your app if you use it for no obvious benefit to the user.