❔ Custom ObservableCollection behaves differently on WPF
As in the image shown this is my error message.
The Collection i built, and use is found here: https://github.com/bPoller2810/MvvMHelpers/blob/main/MvvMHelpers.core/ConditionalObservableCollection.cs
This Collection works without any issues in Xamarin.Forms, Maui and other non Framework useage.
But in Wpf the error seen shows up. (every time). I Then created a mvp to recreate the error, but there it works.
Sadly i could not find out :
- Why does it talk about add, if i send "new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index)"
- Why does it fail anyway? (My Collection contains 1 element and my action is to type a letter that will get the element removed. this single removed element is on index 0)
- (Bonus) Why does it not fail in the mvp.
does anybody have an idea or deeper knownledge in wpf and can help me here?
The Collection i built, and use is found here: https://github.com/bPoller2810/MvvMHelpers/blob/main/MvvMHelpers.core/ConditionalObservableCollection.cs
This Collection works without any issues in Xamarin.Forms, Maui and other non Framework useage.
But in Wpf the error seen shows up. (every time). I Then created a mvp to recreate the error, but there it works.
Sadly i could not find out :
- Why does it talk about add, if i send "new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index)"
- Why does it fail anyway? (My Collection contains 1 element and my action is to type a letter that will get the element removed. this single removed element is on index 0)
- (Bonus) Why does it not fail in the mvp.
does anybody have an idea or deeper knownledge in wpf and can help me here?

