Cysharp / ObservableCollections

High performance observable collections and synchronized views, for WPF, Blazor, Unity.
MIT License
606 stars 46 forks source link

When using ObservableDictionary.ToNotifyCollectionChanged in WinUI 3, the application crashes #71

Closed dalian-spacekey closed 2 months ago

dalian-spacekey commented 2 months ago

From SynchronizedViewList.cs line 852 ↓ To NotifyCollectionChangedEventHandler.cs line 62, where the application exits.

Sample project: https://github.com/dalian-spacekey/ObservableCollections/tree/winui3_dictionary

neuecc commented 2 months ago

Thank you. For Dictionary, I have to modify the StartingIndex of the notification event. I had corrected it for Filtered and the other events, but somehow only omitted Add for Nonfiltered! I have released a fix in 3.0.4.