Search This Blog

Friday 8 May 2020

Cannot access a disposed object in Xamarin Form (4.6) - Android

If you are getting error like Cannot access a disposed object while Selecting the ListView Item in Android.

Solution: Just set the ListView CachingStrategy to : RecycleElementAndDataTemplate

 <ListView x:Name="list"  CachingStrategy="RecycleElementAndDataTemplate"  ItemsSource="{Binding Employees"   ItemSelected="list_ItemSelected"/>
 

No comments:

Post a Comment

Popular Posts