Take a look at the InsertItem code from the ObservableCollection class (from Reflector): Protected Overrides Sub InsertItem(ByVal index As Integer, ByVal item As T) Me. CheckReentrancy MyBase. InsertItem(index, item) Me.
OnPropertyChanged("Count") Me. OnPropertyChanged("Item") Me. OnCollectionChanged(NotifyCollectionChangedAction.
Add, item, index) End Sub Now use that as a guideline what notifications an ObservableCollection should perform. The OnCollectionChanged method is the main connection to the wpf notification system, if it gets called appropriately, then this calss is working properly, and somewhere else is the problem Also, in your OnPhotoCreated method, you call the Items. Add method, which doesn't do notifications it doesn't belong to the ObservableCollection class, but the Collection.
Take a look at the InsertItem code from the ObservableCollection class (from Reflector): Protected Overrides Sub InsertItem(ByVal index As Integer, ByVal item As T) Me. CheckReentrancy MyBase. InsertItem(index, item) Me.
OnPropertyChanged("Count") Me. OnPropertyChanged("Item") Me. OnCollectionChanged(NotifyCollectionChangedAction.
Add, item, index) End Sub Now use that as a guideline what notifications an ObservableCollection should perform. The OnCollectionChanged method is the main connection to the wpf notification system, if it gets called appropriately, then this calss is working properly, and somewhere else is the problem. Also, in your OnPhotoCreated method, you call the Items.
Add method, which doesn't do notifications, it doesn't belong to the ObservableCollection class, but the Collection class from which ObservableCollection inherits. As for the InvalidOperationException error, it sounds like a case of UI update from the wrong thread to me.
Dim FileWatcher As New FileSystemWatcher(ImagePath, "*. Created, New FileSystemEventHandler(AddressOf Me. Deleted, New FileSystemEventHandler(AddressOf Me.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.