File Location: arcgis-toolkit-dotnet/src/Esri.ArcGISRuntime.Toolkit/WPF/UI/Controls/TableOfContents/ObservableLayerContentList.cs
Line 89: foreach (var item in e.NewItems.OfType())
Suspected wrong code: "e.NewItems" should be "e.OldItems"?
This causes errors when you change the base map, while the table of contents is opened.
When debugging, open the table of contents and change the base map. It will throw errors at Line 89.
I tried changing the code from "e.NewItems" to "e.OldItems", exception disappeared at Line 89, but new errors thrown at other places. So, I am not sure how to fix it.
File Location: arcgis-toolkit-dotnet/src/Esri.ArcGISRuntime.Toolkit/WPF/UI/Controls/TableOfContents/ObservableLayerContentList.cs Line 89: foreach (var item in e.NewItems.OfType())
Suspected wrong code: "e.NewItems" should be "e.OldItems"?
This causes errors when you change the base map, while the table of contents is opened.
Simple repro step:
I tried changing the code from "e.NewItems" to "e.OldItems", exception disappeared at Line 89, but new errors thrown at other places. So, I am not sure how to fix it.