private void NavigateButton_Click(object sender, RoutedEventArgs e) { Click(); Button b = (Button)sender; OptionsButton.Visibility = Visibility.Visible; if (b.Name.Equals("UpgradesButton")) { InnerFrame.Navigate(typeof(UpgradesPage), Data); } else if (b.Name.Equals("SpecialButton")) { InnerFrame.Navigate(typeof(SpecialPage), Data); } else if (b.Name.Equals("StatsButton")) { InnerFrame.Navigate(typeof(StatsPage), Data); } else if (b.Name.Equals("AchievementsButton")) { InnerFrame.Navigate(typeof(AchievementsPage), Data); } else if (b.Name.Equals("OptionsButton")) { InnerFrame.Navigate(typeof(OptionsPage), Data); OptionsButton.Visibility = Visibility.Collapsed; } BackButton.Visibility = Visibility.Visible; }
private void Button_Click_2(object sender, RoutedEventArgs e) { InnerFrame.Navigate(typeof(BlankSubPage2)); this.GoBackButton.IsEnabled = InnerFrame.BackStack.Any(); SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = InnerFrame.BackStack.Any() ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; }
public MainPage() { this.InitializeComponent(); InnerFrame.Navigate(typeof(Financial)); text.Text = " Financial "; BackButton.Visibility = Visibility.Collapsed; }
private void BackButton_Click(object sender, RoutedEventArgs e) { Click(); InnerFrame.Navigate(typeof(ButtonPage), Data); BackButton.Visibility = Visibility.Collapsed; OptionsButton.Visibility = Visibility.Visible; }
private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (ItemsListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(ItemPage)); ToItems(); } }
private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (FinancialListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Financial)); ToFinancial(); } else if (FoodListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Food)); ToFood(); } }
private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (FinancialListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Financial)); BackButton.Visibility = Visibility.Collapsed; Title.Text = "Financial"; } else if (FoodListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Food)); BackButton.Visibility = Visibility.Visible; Title.Text = "Food"; } }
private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (EPICListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(EPIC)); } else if (LearnYourselfListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Learn_Yourself)); } else if (WelcomeListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Welcome)); WelcomeListBoxItem.IsSelected = false; } }
public MainPage() { this.InitializeComponent(); Data.CommitsClickIncrement = 1; Data.Commits = 0; Data.CommitsPerSecond = 0; Data.Specialpoints = 0; InnerFrame.Navigate(typeof(ButtonPage), Data); BackButton.Visibility = Visibility.Collapsed; timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 0, 1); timer.Tick += DispatcherTimer_Tick; timer.Start(); PopupText.Text = "Click on the Gear on the \nbottom left for instructions."; PopupTitleText.Text = "Welcome to CommitClicker!"; Popup.IsOpen = true; }
private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (HomeListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Home)); Title.Text = "Home"; } else if (InfoListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Info)); Title.Text = "Info"; } else if (SettingsListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Settings)); Title.Text = "Play"; } SettingsListBoxItem.IsSelected = false; }
/// <summary> /// Navigates between pages when their corresponding item is selected. /// </summary> private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (CalculatorListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Calculator), currentUser); LocationTextBlock2.Visibility = Visibility.Collapsed; LocationTextBlock3.Visibility = Visibility.Collapsed; LocationTextBlock.Visibility = Visibility.Visible; } else if (HistoryListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(History), currentUser); LocationTextBlock2.Visibility = Visibility.Visible; LocationTextBlock3.Visibility = Visibility.Collapsed; LocationTextBlock.Visibility = Visibility.Collapsed; } else if (SettingsListBoxItem.IsSelected) { InnerFrame.Navigate(typeof(Settings), currentUser); LocationTextBlock2.Visibility = Visibility.Collapsed; LocationTextBlock3.Visibility = Visibility.Visible; LocationTextBlock.Visibility = Visibility.Collapsed; } }
private void ScheduleClick(object sender, RoutedEventArgs e) { InnerFrame.Navigate(typeof(SchedulePage)); }
private void DonutClick(object sender, RoutedEventArgs e) { InnerFrame.Navigate(typeof(DonutPage)); }
public NavigationFlow() { InitializeComponent(); // Inner frame used to contain source and destination pages InnerFrame.Navigate(typeof(NavigationFlowSourcePage)); }
private void CoffeePageButton_Click(object sender, RoutedEventArgs e) { InnerFrame.Navigate(typeof(CoffeePage)); }
private void BackButton_Click(object sender, RoutedEventArgs e) { text.Text = " Financial "; BackButton.Visibility = Visibility.Collapsed; InnerFrame.Navigate(typeof(Financial)); }
public MainPage() { this.InitializeComponent(); InnerFrame.Navigate(typeof(SearchPage), sharedData); }
private void CompleteClick(object sender, RoutedEventArgs e) { InnerFrame.Navigate(typeof(CompletePage)); }
/// <summary> /// Invoked when the page is nagivated to, and initializes the user's data and displays /// the <c>History</c> page first. /// </summary> /// <param name="e">CurrentUser object</param> protected override void OnNavigatedTo(NavigationEventArgs e) { currentUser = (CurrentUser)e.Parameter; InnerFrame.Navigate(typeof(History), currentUser); }
public MainPage() { this.InitializeComponent(); InnerFrame.Navigate(typeof(LoginPage)); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); InnerFrame.Navigate(typeof(BlankSubPage1)); this.GoBackButton.IsEnabled = InnerFrame.BackStack.Any(); }