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

Navigation.PopAsync threading...

$
0
0

Hello, is Navigation.PopAsync() require BeginInvokeOnMainThread if being called from a separate thread? For example from a WebService ASync Completed event?

void _ws_VerifyUserCompleted(object sender, VerifyUserCompletedEventArgs e) {
  Device.BeginInvokeOnMainThread(() => DisplayAlert("This is a title", "This is a message", "Ok"));
  Navigation.PopAsync();
}

or

void _ws_VerifyUserCompleted(object sender, VerifyUserCompletedEventArgs e) {
  Device.BeginInvokeOnMainThread(() => {
    DisplayAlert("This is a title", "This is a message", "Ok"));
    Navigation.PopAsync();
  }
}

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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