{"action":"created","issue":{"url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/7","labels_url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/7/comments","events_url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/7/events","html_url":"https://github.com/anagram4wander/VirtualizingObservableCollection/issues/7","id":103571219,"number":7,"title":"Bug? CollectionChanged does not fire for all items in collection","user":{"login":"dstarman99","id":9748975,"avatar_url":"https://avatars.githubusercontent.com/u/9748975?v=3","gravatar_id":"","url":"https://api.github.com/users/dstarman99","html_url":"https://github.com/dstarman99","followers_url":"https://api.github.com/users/dstarman99/followers","following_url":"https://api.github.com/users/dstarman99/following{/other_user}","gists_url":"https://api.github.com/users/dstarman99/gists{/gist_id}","starred_url":"https://api.github.com/users/dstarman99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstarman99/subscriptions","organizations_url":"https://api.github.com/users/dstarman99/orgs","repos_url":"https://api.github.com/users/dstarman99/repos","events_url":"https://api.github.com/users/dstarman99/events{/privacy}","received_events_url":"https://api.github.com/users/dstarman99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T18:50:28Z","updated_at":"2015-08-31T15:48:03Z","closed_at":null,"body":"It seems that the CollectionChanged event only fires for Visible items in the UI and not for all loaded items.\r\n\r\nTo replicate this issue in the sample project add the following to MainWindow.xaml.cs:\r\n```c#\r\nprivate void MyDataVirtualizedAsyncFilterSortObservableCollection_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)\r\n{\r\n    Console.WriteLine(((RemoteOrDbDataItem)e.NewItems[0]).Name);\r\n}\r\n```\r\nThen add the following to the VirtualizingObservableCollection property:\r\n```c#\r\n_myDataVirtualizedAsyncFilterSortObservableCollection.CollectionChanged += MyDataVirtualizedAsyncFilterSortObservableCollection_CollectionChanged;\r\n```\r\nYou will see that Output only includes visible items (1-15) and does not include the full loaded set (1-100). When you scroll to the next set (101-200), again only the items in view fire the CollectionChanged event.\r\n\r\nHow can I get notification for each item that has been added to the collection?"},"comment":{"url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/comments/136412141","html_url":"https://github.com/anagram4wander/VirtualizingObservableCollection/issues/7#issuecomment-136412141","issue_url":"https://api.github.com/repos/anagram4wander/VirtualizingObservableCollection/issues/7","id":136412141,"user":{"login":"sgdowney","id":5131107,"avatar_url":"https://avatars.githubusercontent.com/u/5131107?v=3","gravatar_id":"","url":"https://api.github.com/users/sgdowney","html_url":"https://github.com/sgdowney","followers_url":"https://api.github.com/users/sgdowney/followers","following_url":"https://api.github.com/users/sgdowney/following{/other_user}","gists_url":"https://api.github.com/users/sgdowney/gists{/gist_id}","starred_url":"https://api.github.com/users/sgdowney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgdowney/subscriptions","organizations_url":"https://api.github.com/users/sgdowney/orgs","repos_url":"https://api.github.com/users/sgdowney/repos","events_url":"https://api.github.com/users/sgdowney/events{/privacy}","received_events_url":"https://api.github.com/users/sgdowney/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T15:48:03Z","updated_at":"2015-08-31T15:48:03Z","body":"With this being a virtual collection, only the items required for viewing are actually retrieved.  That's why the event only fires for the items in view.  If you are not dealing with huge data sets then this may not be the appropriate collection type to use."}}