Beispiel #1
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     if (DisqusWebView.CanGoBack)
     {
         DisqusWebView.GoBack();
     }
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        private void LoadDisqus()
        {
            Uri navigateUrl = new Uri($"{_staticUrlBase}?shortname={_shortname}&identifier={_identifier}&title={WebUtility.UrlEncode(_title)}&url={WebUtility.UrlEncode(_url)}");

            DisqusWebView.Navigate(navigateUrl);
        }
Beispiel #4
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     DisqusWebView.Stop();
 }