Пример #1
0
 public ChatMessage(Queue.Message message)
 {
     InitializeComponent();
     AvatarCanvas.Children.Add(new Avatar(message.Sender));
     MessageText.Text    = message.Content;
     MessageText.ToolTip = "Sent at " + message.Timestamp.ToLocalTime().ToString("HH:mm:ss");
 }
Пример #2
0
 public ChatMessage(Queue.Message message)
 {
     InitializeComponent();
     AvatarCanvas.Children.Add(new Avatar(message.Sender));
     MessageText.Text = message.Content;
 }