I'm new to WPF binding and I'm trying to read each line from a text file using a StringBuilder to manipulate each line, convert the result to a String, add the string to an ObservableCollection and display each line in a ListBox as it's added. Everything
is working except the dynamic update to the ListBox. The ListBox displays the entire collection after the whole file is read but I'd like it to show each addition as it's added.
I expected that ObservableCollection's implementation of INotifyCollectionChanged would enable the binding to update the ListBox after each addtion, but that's not the case. I've searched for answers but can't find an example that does just this.
Do I need to have a separate class derived from String that implements INotifyPropertyChanged? If so, how might I do that? Below is the binding I use:
Thanks for responding,