Beispiel #1
0
        public ThreadViewModel(Thread t)
        {
            BoardName = t.Board.Name;
            Number = t.Number;
            Background = t.Board.Brush;

            Post initial = t.Posts.FirstOrDefault().Value;
            if (initial != null) InitialPost = new PostViewModel(initial);
        }
Beispiel #2
0
        private void ScrollTargetLoaded(object sender, PostViewModel target)
        {
            _viewModel.AllPosts.Flush();

            MainPivot.SelectedIndex = 0;
            TextLLS.UpdateLayout();
            TextLLS.ScrollTo(target);
        }