void Current_Deactivated(object sender, DeactivatedEventArgs e)
 {
     player.Close(); // shut things like ads down.
     deactivatedState = playerState;
 }
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     playerState = player.GetMediaState();
     base.OnNavigatingFrom(e);
 }