Windows Store App Display Power State Sample
Download this attached sample code to learn how to use Display power state in a Windows Store App using C#.
Download this attached sample code to learn how to use Display power state in a Metro style app using C#.