Exemple #1
0
 private void HandleChat(string UserName, string msg)
 {
     SPChat.Children.Add(new TextBlock()
     {
         Text         = UserName + " " + DateTime.Now.ToString(),
         Style        = Resources["MaterialDesignBody2TextBlock"] as Style,
         FontWeight   = FontWeights.Bold,
         TextWrapping = TextWrapping.Wrap
     });
     SPChat.Children.Add(new TextBlock()
     {
         Text         = msg,
         Style        = Resources["MaterialDesignCaptionTextBlock"] as Style,
         TextWrapping = TextWrapping.Wrap
     });
     SVChat.ScrollToBottom();
 }
Exemple #2
0
 private void ICChat_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     SVChat.ScrollToBottom();
 }