Click here to Skip to main content
14,667,696 members
Rate this:
Please Sign up or sign in to vote.
See more:
I've bound the control's ItemsSource property to an ObservableCollection of items (deriving from INotifyPropertyChanged), but when I add items to the collection, the ListView doesn't update in the form.

If I put a breakpoint in the code after the line that adds the new items, the ListView.ItemsSource is set correctly and the indicated collection has items, but ListView.Items.Count is 0.

Any help would be appreciated.

EDIT ===============

There are no binding errors displayed in the compiler's output window.
Updated 1-Jul-14 2:53am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Nevermind - the problem was that I was instatiating a new instance of the ViewModel before retrieving the data.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100