D
D
DarkByte20152016-04-26 11:33:20
WPF
DarkByte2015, 2016-04-26 11:33:20

How to make a chat container?

I'm making a chat, I need a container in which messages will be displayed. It should look like in classic chats, i.e.: a field of the TextBox type, multiline, but ReadOnly so that it can be copied. Messages will be in the format "time username> message". But the most important and difficult thing is that the nickname (username) is clickable! Those. First of all, it should be displayed well, like a link, so underlined. By clicking on it, you can open private. (I'll do this myself, of course, I would just make it clickable) And when you right-click on it, open the context menu. Tell me how to implement it? Just don't suggest a ListBox, I've already seen such examples on the net! It's not that at all, because it doesn't look like a chat at all and you can't copy it...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2016-04-26
@yarosroman

I suggest the ListBox because it is what you need, the ItemTemplate will help you, I am more than sure that with this you can do what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question