Error: Only the original thread that created a view hierarchy can touch its views in Xamarin

后端 未结 3 922
离开以前
离开以前 2021-01-20 05:54

I am getting an error error: Only the original thread that created a view hierarchy can touch its views

in line

BookingAdapter expListAd         


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-20 06:07

    Here is a cross platform solution in xamarin for this issue;

     Device.BeginInvokeOnMainThread(() =>
     {
       //Your code here
     });
    

提交回复
热议问题