ListView Xamarin.Forms.Platform.iOS.ContextActionsCell Crash

Hamittirpan 166 Reputation points
2022-05-18T07:33:44.263+00:00

Hi everyone

I am developing an application with Xamarin.Forms(5.0.02401). I'm having a problem with my iOS project.
It crashes when my screen with lisview in my app is displayed. The reason is "System.TypeInitializationException: 'The type initializer for 'Xamarin.Forms.Platform.iOS.ContextActionsCell' threw an exception.'". If I change ListView's property to CachingStrategy="RetainElement" the problem goes away. But this problem occurred all of a sudden. Normally I have many ListViews in my application and many of them are selected as "RecycleElements". Is there any way to fix this problem?

Thanks in advance

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
{count} votes