private void DisqusWebView_NewWindowRequested(WebView sender, WebViewNewWindowRequestedEventArgs args) { // Handle the event so we don't end up in the Web Browser if (args.Uri.Host == "disqus.com" && _loginUrlEntryPaths.Contains(args.Uri.AbsolutePath)) { // Prevent web browser from being opened args.Handled = true; // Launch the login experience here. You can either navigate to the URL in this page, or open a new WebView window _isInLoginMode = true; DisqusWebView.Navigate(args.Uri); } }
private void LoadDisqus() { Uri navigateUrl = new Uri($"{_staticUrlBase}?shortname={_shortname}&identifier={_identifier}&title={WebUtility.UrlEncode(_title)}&url={WebUtility.UrlEncode(_url)}"); DisqusWebView.Navigate(navigateUrl); }