private void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e)
{
// Place the application into "background mode" and note the
// transition with a flag.
Debug.WriteLine("Entered background");
isInBackgroundMode = true;
// An application may wish to release views and view data
// at this point since the UI is no longer visible.
//
// As a performance optimization, here we note instead that
// the app has entered background mode with a boolean and
// defer unloading views until AppMemoryUsageLimitChanging or
// AppMemoryUsageIncreased is raised with an indication that
// the application is under memory pressure.
}