private void ListView_ItemClick(object sender, ItemClickEventArgs e)
        {
            ComicQuery query = e.ClickedItem as ComicQuery;

            if (query != null)
            {
                this.Frame.Navigate(typeof(QueryDetail), query);
            }
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ComicQuery comicQuery = e.Parameter as ComicQuery;

            if (comicQuery != null)
            {
                comicQueryManager.UpdateQueryResults(comicQuery);
                pageTitle.Text = comicQueryManager.Title;
            }
            navigationHelper.OnNavigatedTo(e);
        }
Esempio n. 3
0
        public void UpdateQueryResults(ComicQuery query)
        {
            Title = query.Title;
            switch (query.Title)
            {
            case "LINQ makes queries easy":
                LinqMakesQueriesEasy(); break;

            case "Expensive comics":
                ExpensiveComics(); break;
            }
        }