So I noticed some developers were experiencing a bug where ListView.ItemTapped would not fire at all if the ViewCell in the ListView's ItemTemplate had ContextActions defined. This is on Android.
I'm actually getting ItemTapped events, but ItemTappedEventArgs.Item is always the first item in the list, not the item that was tapped. Weird thing about it is that when I set a breakpoint in the event handler and look at ItemTappedEventArgs.Item in the watch window, I see the tapped item. But when I do var selectedItem = (ItemType)e.Item; then selectedItem is THEN the first item. Oh, and evaluating ItemTappedEventArgs.Item in the debugger watch window produces this error in the output window, but I still see data in the watch window:
System.ArgumentException: The field 'k__BackingField' is not valid for this type.
at Mono.Debugger.Soft.ObjectMirror.GetValues(IList`1 fields) in E:\A_work\785\s\external\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\ObjectMirror.cs:line 93
at Mono.Debugger.Soft.ObjectMirror.GetValue(FieldInfoMirror field) in E:\A_work\785\s\external\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\ObjectMirror.cs:line 74
at Mono.Debugging.Soft.FieldValueReference.get_Value() in E:\A_work\785\s\external\debugger-libs\Mono.Debugging.Soft\FieldValueReference.cs:line 129
at Mono.Debugging.Evaluation.ValueReference.GetValue(EvaluationContext ctx) in E:\A_work\785\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ValueReference.cs:line 206
at Mono.Debugging.Evaluation.ValueReference.OnCreateObjectValue(EvaluationOptions options) in E:\A_work\785\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ValueReference.cs:line 135
at Mono.Debugging.Evaluation.ValueReference.CreateObjectValue(EvaluationOptions options) in E:\A_work\785\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ValueReference.cs:line 106