Click here to Skip to main content
13,732,889 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.
Posted 1-Jul-14 2:52am
Updated 1-Jul-14 2:53am
v2

1 solution

Rate this: bad
 
good
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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web05-2016 | 2.8.180920.1 | Last Updated 1 Jul 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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