protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            
            var article = new ArticleViewModel();
            article.Headline = (string)e.Parameter;

            this.Article = article;

            _loadTimer.Start();

            SystemNavigationManager.GetForCurrentView().BackRequested += ArticlePage_BackRequested;
        }
Ejemplo n.º 2
0
 public HeroArticlesViewModel()
 {
     _article0 = new ArticleViewModel();
     _article1 = new ArticleViewModel();
 }
 public HeroArticlesViewModel()
 {
     _article0 = new ArticleViewModel();
     _article1 = new ArticleViewModel();
 }
 private void SectionView_ArticleSelected(object sender, ArticleViewModel e)
 {
     // In a real app, you might pass a unique ID for the article as a navigation parameter.
     // Here we pass the title.
     Frame.Navigate(typeof(ArticlePage), e.Headline);
 }