public override void PageLoaded(PageLoadedDirection direction)
 {
     base.PageLoaded(direction);
     labelRunningOnBattery.Visible = PowerManagement.CheckBatteryDischarging();
 }
 protected override void PageLoadedCore(PageLoadedDirection direction)
 {
     labelRunningOnBattery.Visible = PowerManagement.CheckBatteryDischarging();
 }