Beispiel #1
0
        private void _parent_NewConversationArrived(object sender, NewConversationArrivedEventArgs e)
        {
            ConversationListItem conversationItem = new ConversationListItem(e.Conversation);

            ConversationList.AddConversation(conversationItem);
            ConversationList.SelectedConversationItem = conversationItem;
        }
Beispiel #2
0
        private void LoadConversations()
        {
            ConversationList conversationList = (ConversationList)LogicalTreeHelper.FindLogicalNode(this, "ConversationList");

            if (conversationList == null)
            {
                return;
            }

            conversationList.Clear();
            foreach (ConversationModel conversation in _conversations)
            {
                ConversationListItem conversationItem = new ConversationListItem(conversation);
                conversationItem.Drop      += ConversationItem_Drop;
                conversationItem.DragOver  += ConversationItem_DragOver;
                conversationItem.DragLeave += ConversationItem_DragLeave;

                conversationList.AddConversation(conversationItem);
            }
        }