I am creating some kind of chat style application. The Listbox is getting filled by its ItemSource which ist a Binding to a List. "Message" is a custom class containing various properties. The ListBox contains a DataTemplate which is used to display the Message-Item properly.
I've got a few problems when I am using a ListBox:
1. The user can not select text.
2. The ListBox does not automatically scroll down when an item is getting added to the List.
I'd like to use something like a TextBox, but I just couldn't figure out how to use some kind of DataTemplate and bind the Text-Property to a List. Of course, the text should be formattable.
Is there anything I can do to solve my problem? I thought about extending the ListBox-Control to a Auto-Scrolling one, but this wouldn't solve my problem concerning text selection.
ItemsControl
and implement your own stuff to auto-scroll it? I doubt you'll need to trackSelectedItem
, and without it you can select your Text (Providing you useLabels
and notTextBlocks
) – Rachel