windows phone关于电池使用情况的获取代码

1、电池剩余的百分比
var remainingChargePecent = Windows.Phone.Devices.Power.Battery.GetDefault().RemainingChargePercent;

2、电池能够支持的大约剩余时间
var remainingChargeTime = Windows.Phone.Devices.Power.Battery.GetDefault().RemainingDischargeTime;

posted @ 2013-03-06 15:01  xiaofoyuan  阅读(236)  评论(0编辑  收藏  举报