private void webView_Navigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e) { if (e.Uri.ToString().StartsWith(_callbackUri.AbsoluteUri)) { var response = new AuthorizeResponse(e.Uri.AbsoluteUri); e.Cancel = true; this.Visibility = System.Windows.Visibility.Hidden; if (Done != null) { Done.Invoke(this, response); } } }
private void _login_Done(object sender, AuthorizeResponse e) { _response = e; Textbox1.Text = e.Raw; }