In my ViewModel i've got an ObservableCollection of string that contains all messages received from ethernet:
public ObservableCollection<string> Messages { get; set; }
And i binded it to a texbox in the view with a converter:
<TextBox Text="{Binding Messages, Converter={StaticResource ListToStringConverter}}" HorizontalAlignment="Center"/>
my converter is a simple
string finalStr;
foreach(var v in Messages)
{
finalStr += v + "\n";
}
return finalStr;
When i select some text the selection disapear when a new message is added to my Messages.
Any ideas how to keep the selection?