Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Only the original thread that created a view hierarchy can touch its views.

$
0
0

Hi there! First of all, my english is not very well, so please be patient to read my question slowly.

Well, as you can see on the tittle, I got a problem about threads. I'm using a Listview and trying to binding the ItemSource from a viewmodel loaded with data (I'm trying to do something like a timeline using facebook or instagram as example). The case is... when I try to use "Binding" I got this Error Message:

"Unhandled Exception:
Android.Util.AndroidRuntimeException: Only the original thread that created a view hierarchy can touch its views."

Yeah, I know this question has been answered in another threads in the forum with the following code:
"Device.BeginInvokeOnMainThread(() => { NotifyPropertyChanged( nameof(PropertyName) ); });"

But that line is the one that makes de app get into a Break Mode. So... any idea?

Thanks for read.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>