Reputation: 135
Just as the title says, I'm trying to do this:
but I get this error.
Do you guys know what should I do ?
Thank you for your help
Upvotes: 0
Views: 127
Reputation: 8124
You can write like this:
Device.BeginInvokeOnMainThread(async() => {
Map.Pins.Clear();
Map.MapElements.Clear();
await ExecuteLoadPinsCommand();
});
Upvotes: 1