private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e) { AppViewModel.IsInBackground = false; AppViewModel.CheckPlayerOnBackgroundChanged(); }