Any UI update from a background thread must run on the main thread. Prefer MainThread.InvokeOnMainThreadAsync when you need to await completion.
MainThread example:
await MainThread.InvokeOnMainThreadAsync(() => label.Text = "Updated");
Any UI update from a background thread must run on the main thread. Prefer MainThread.InvokeOnMainThreadAsync when you need to await completion.
MainThread example:
await MainThread.InvokeOnMainThreadAsync(() => label.Text = "Updated");
Share with