/// <summary> /// Phone Back Key press /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnBackKeyPress(object sender, System.ComponentModel.CancelEventArgs e) { SearchBox_LoseFocus(); // Hide search box if (currentDirectoryFileInfo != null) { // display parent directory e.Cancel = true; // dont exit page/app if (session != null && (DateTimeOffset.Now < session.Expires)) { skyDriveFileDao = new SkyDriveFileDao(session); skyDriveFileDao.TraverseParentDirectory(currentDirectoryFileInfo); skyDriveFileDao.FilesListBox = FirstListBox; } else { Debug.WriteLine("You must sign in first."); } } else { // exit page } }