UWP loses the correct reference to the cell after adding and removing items to a ListView.
I found this related bug on bugzilla with a nice sample: https://bugzilla.xamarin.com/show_bug.cgi?id=42999, I have updated the sample and uploaded to a git repo here: https://github.com/giusepe/UWPContextActionsBug
Item 4 to be removed
Item 4 will still visible
When you try to toggle it to read, the app crashes
Works on iOS and Android as expected.
Nuget Packages:
Xamarin.Forms 3.1.0.697729
Microsoft.NETCore.UniversalWindowsPlatform 6.1.7
Affected Devices: Only tried on a Windows PC (x86)
In order to reproduce the issue, I had to:
After that, attempting to set Item 4 to 'read' via the context menu causes a crash.
Ops, sorry @hartez for the wrong directions, I made this so many times to figure out and in the end, I wrote it wrong.