DeviceStatus.PowerSource Property
Windows Phone
March 22, 2012
Indicates whether the device is currently running on battery power or is plugged in to an external power supply.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
For more information about the DeviceStatus API, see Device Status for Windows Phone.