コード例 #1
0
        private void LoadArticle()
        {
            var action = Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                ContentCollection.BeginLoad(LiPTT.CurrentArticle);
                ArticleHeader.DataContext        = LiPTT.CurrentArticle;
                SplitViewPaneContent.DataContext = LiPTT.CurrentArticle;

                ControlVisible = true;
            });
        }
コード例 #2
0
ファイル: BoardPage.xaml.cs プロジェクト: chihuai/LiPTT
 private void InitBoard(PTTClient sender, LiPttEventArgs e)
 {
     if (e.State == PttState.Board)
     {
         LiPTT.PttEventEchoed -= InitBoard;
         var action = Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
         {
             ContentCollection.BeginLoad();
         });
     }
 }