windows phone关于电池使用情况的获取代码
1、电池剩余的百分比
var remainingChargePecent = Windows.Phone.Devices.Power.Battery.GetDefault().RemainingChargePercent;
2、电池能够支持的大约剩余时间
var remainingChargeTime = Windows.Phone.Devices.Power.Battery.GetDefault().RemainingDischargeTime;