Click here to Skip to main content
14,695,387 members
Please Sign up or sign in to vote.
1.00/5 (1 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.
Posted
Updated 1-Jul-14 3:53am
v2

1 solution

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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900