私はWP7 Phonegapアプリに取り組んでいます。以下のコードを使用して戻るボタンを処理しましたが、戻るボタンをクリックすると、戻るボタン イベントがキャンセルされず、アプリケーションが終了します。
void OnBackKeyPressed(object sender, CancelEventArgs e)
{
var result = MessageBox.Show("Dof fd fd you want to exit?", "Attention!",
MessageBoxButton.OKCancel);
if (result == MessageBoxResult.OK)
{
// Do not cancel navigation
return;
}
e.Cancel = true;
}
同じことを手伝ってください。前もって感謝します。