コード例 #1
0
 public void Update(ChatViewModel message)
 {
     if (this.chatWindow != null && message != null)
     {
         Program.DispatchIfNecessary(() =>
         {
             this.textblockChat.Text += string.Format("{0} {1} {2}", ChatViewModel.GetChatDirection(message.ChatDirection), message.Message, Environment.NewLine);
             this.scrollViewerOutput.ScrollToBottom();
         });
     }
 }