Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a ObservableCollection<editorsegmentdata> which I feed to the ListBox as ItemsSource. This application is not written with MVVM pattern. It draws perfectly. Now I change it dynamically but it never updates even I called InvalidateVisual. Unable to understand why not.

Any help will be very much appreciated.

Update: If I use sort the ListBox it updates. Is there any other way to update?
Posted
Updated 5-May-13 21:25pm
v2
Comments
Francisco T. Chavez 6-May-13 15:47pm    
Are you feeding the collection directly to the items source, or are you binding the items source to the collection?

What exactly are you changing?
* Adding items to the collection.
* Removing items from the collection.
* Moving items around in the collection.
* Changing the property values of the items in the collection.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900