Exemplo n.º 1
0
 public ThreadItem(int level, HNItem item) {
     this.margin = new Thickness(level * 30, 0, 0, 0);
     this.item = item;
     if (item.dead || item.deleted) {
         color = new SolidColorBrush(Windows.UI.Colors.Gray);
     } else {
         color = new SolidColorBrush(Windows.UI.Colors.White); //change based on theme
     }
 }
Exemplo n.º 2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e) {
            base.OnNavigatedTo(e);

            this.id = (int)e.Parameter;
            this.root = await HNItem.fromID(id);
            this.ScoreText.Text = root.score.ToString();
            this.TitleText.Text = root.title;

            RefreshThread(id);
        }