protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { if (showScores) { e.Cancel = true; showScores = !showScores; ScoresOutStoryBoard.Begin(); OpeningStoryBoard.Begin(); } base.OnBackKeyPress(e); }
void ResetStoryBoard_Completed(object sender, EventArgs e) { OpeningStoryBoard.Begin(); }
/// <summary> /// Gestione del click per tornare indietro dalla visualizzazione dei punteggi. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ScoresBackButton_Click(object sender, RoutedEventArgs e) { showScores = !showScores; ScoresOutStoryBoard.Begin(); OpeningStoryBoard.Begin(); }