protected override void OnNavigatedTo(NavigationEventArgs e) { Models.PostPageArguments args = (Models.PostPageArguments)e.Parameter; post = args.item; authController = args.authController; if (authController.accesToken == null) { CommentButton.IsEnabled = false; } TextBlockTitle.Text = post.title; TextBlockContent.Text = post.selftext; if (!post.url.Equals("")) { TextBlockContent.Text += "\n Link: \n" + post.url; } loadComments(); }
public void addSubReddit(Models.SubRedditData sub) { subRedditsObs.Add(sub); }