private void togglebackfront(object sender, RoutedEventArgs e) { Ts_Toggled(sender, e); if (showFront) { togle.Content = "Showing front"; togle.IsChecked = true; DetailedCardPage.FrontGrid.Visibility = Visibility.Visible; DetailedCardPage.BackGrid.Visibility = Visibility.Collapsed; if (DetailedCardPage.front.Visibility == Visibility.Collapsed) { DetailedCardPage.Flip(); } } else { togle.Content = "SHowing back"; togle.IsChecked = false; DetailedCardPage.FrontGrid.Visibility = Visibility.Collapsed; DetailedCardPage.BackGrid.Visibility = Visibility.Visible; if (DetailedCardPage.back.Visibility == Visibility.Collapsed) { DetailedCardPage.Flip(); } } }
//check private async void Button_Click(object sender, RoutedEventArgs e) { if (DetailFrame.CanGoBack) { if (DetailedCardPage.front.Visibility == Visibility.Visible) { await DetailedCardPage.SaveCard(true); } if (DetailedCardPage.back.Visibility == Visibility.Visible) { await DetailedCardPage.SaveCard(false); } DetailFrame.GoBack(); } else { await exit(); } }
private void editeMode2_Click(object sender, RoutedEventArgs e) { DetailedCardPage.edit(); }