protected override void OnNavigatedTo(NavigationEventArgs e) { website = e.Parameter as BindableWebsite; WebsiteBlock.Text = website.Name; website.DisplayBuzzWords(BuzzWordsView); //await OptionsManager.LoadAndDisplayTagOptionsAsync(TagOptionsView, website.ApiSiteParameter); }
/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. The Parameter /// property is typically used to configure the page.</param> protected override async void OnNavigatedTo(NavigationEventArgs e) { website = e.Parameter as BindableWebsite; WebsiteBlock.Text = website.Name; LoadingBar.ShowPaused = false; website.DisplayTags(TagsView); await OptionsManager.LoadAndDisplayTagOptionsAsync(TagOptionsView, website.ApiSiteParameter); LoadingBar.ShowPaused = true; }
private async void AddButton_Click(object sender, RoutedEventArgs e) { if (WebsiteOptionsView.SelectedItem != null) { BindableWebsiteOption websiteOption = WebsiteOptionsView.SelectedItem as BindableWebsiteOption; BindableWebsite website = await SettingsManager.AddWebsiteAndSave(websiteOption); if (website != null) { Frame.Navigate(typeof(TagOptionsPage), website); } } }