用户头像显示

This commit is contained in:
Kaniu Tayou
2018-12-25 22:45:58 +08:00
parent 8ec162c5df
commit 96c128b295
13 changed files with 137 additions and 102 deletions
@@ -1,4 +1,5 @@
using Interact;
using StormChatWPF.UI;
using System;
using System.Linq;
using System.Windows;
@@ -58,7 +59,7 @@ namespace StormChatWPF
App.Current.Dispatcher.Invoke(
(Action)delegate()
{
OutBox.Children.Add(new ChatBubble(message,HorizontalAlignment.Left));
OutBox.Children.Add(new StormChatWPF.UI.ChatBubble(message,HorizontalAlignment.Left));
});
}//接受到的的消息
else
@@ -66,7 +67,7 @@ namespace StormChatWPF
App.Current.Dispatcher.Invoke(
(Action)delegate()
{
OutBox.Children.Add(new ChatBubble(message, HorizontalAlignment.Right));
OutBox.Children.Add(new StormChatWPF.UI.ChatBubble(message, HorizontalAlignment.Right));
});
}//发送的的消息
}//将消息展现于UI界面
@@ -75,8 +76,7 @@ namespace StormChatWPF
{
App.Current.Dispatcher.Invoke(
(Action)delegate ()
{
OutBox.Children.Add(new HeadPicture());
{
});
}
}