Error in Xamarin Android with a progress dialog “Only the original thread that created a view hierarchy can touch its views”

后端 未结 4 1361
醉酒成梦
醉酒成梦 2021-01-25 08:01

I\'m trying to use a progress dialog, while filling a datagrid, but I get the following error: \"Only the original thread that created a view hierarchy can touch its views\", th

4条回答
  •  猫巷女王i
    2021-01-25 08:57

    you cannot use dlg.Dismiss(); inside ThreadPool.QueueUserWorkItem, move it before try close sign

提交回复
热议问题