Get battery status on windows 8

I searched over the Internet, and the only thing that seemed a little useful to me was a way to get the battery status on Windows Phone 8. But I want it on Windows 8 (RT).

Can anyone help me out?

+4
source share
1 answer

In accordance with everything I can find, we do not have access to the Power API in WinRT, it is available only for the desktop application. See the MSDN Forum Article

Top link:

Power management features apply only to the “desktop application”.

There is no equivalent for the Power APIs in the Metro style app. Please check out the Windows API alternatives in Metro style apps.

Here is your thread http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/3e9dc84c-bbf9-42f3-bc19-25bce3e7e04c .

+6
source

All Articles