private void auth_Completed(object sender, global::Xamarin.Auth._MobileServices.AuthenticatorCompletedEventArgs e) { if (e.IsAuthenticated) { // e.Account contains info: // e.AccountProperties[""] // // use access tokenmore detailed user info from the API this.AccountProperties = e.Account.Properties; } else { // The user cancelled } // dismiss UI on iOS, because it was manually created //DismissViewController(true, null); // possibly do something to dismiss THIS viewcontroller, // or else login screen does not disappear var rv = System.Windows.Application.Current.RootVisual; Microsoft.Phone.Controls.PhoneApplicationFrame paf = null; paf = rv as Microsoft.Phone.Controls.PhoneApplicationFrame; //paf.GoBack(); return; }
void OnAuthCompleted(object sender, global::Xamarin.Auth._MobileServices.AuthenticatorCompletedEventArgs e) { if (Completed != null) { Completed(sender, e); } ((Authenticator)sender).Completed -= OnAuthCompleted; }