private void StopKeepReadCard_Click(object sender, RoutedEventArgs e) { CardReader.StopKeepReadCard(); ReadingButton.IsEnabled = true; KeepReadingButton.IsEnabled = false; StopKeepReadingButton.IsEnabled = true; }
private void NavView_Navigate(string navItemTag, NavigationTransitionInfo transitionInfo) { Type _page = null; if (navItemTag == "settings") { _page = typeof(SettingPage); } else { _page = typeof(StartModePage); } var preNavPageType = ContentFrame.CurrentSourcePageType; // Only navigate if the selected page isn't currently loaded. if (!(_page is null)) { CardReader.StopKeepReadCard(); ContentFrame.Navigate(_page, navItemTag, transitionInfo); } }