// Adds the chat item. Must be called from UI thread. public void AddChatItem(String scope, String sender, String message) { ChatItem item = new ChatItem(); item.Scope = scope; item.Sender = sender; item.Message = message; // Add the item to the container. ChatContainer.Children.Add(item); // Scroll to the bottom. Scroller.ScrollToBottom(); }