Exemplo n.º 1
0
        // 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();
        }
        // 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();
        }