Example #1
0
        void OnNavigating(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
        {
            var uri = args.Uri != null ? args.Uri.AbsoluteUri : "";
            NavigationRequestedDelegate nrd = (NavigationRequestedDelegate)Element.InvokeEvent(WebViewEventType.NavigationRequested, new NavigationRequestedDelegate(Element, uri));

            args.Cancel = nrd.Cancel;
        }
Example #2
0
 private void Control_NavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
 {
     CookieWebView.OnNavigating(new CookieNavigationEventArgs()
     {
         Url = args.Uri.ToString()
     });
 }
Example #3
0
        private static void WebView_NavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
        {
            var message = $"NavigationStarting @ {args.Uri} [{sender.Source}]";

            SetMessage(sender, message);
            sender.Log().DebugIfEnabled(() => message);
        }
 private void WebView_NavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
 {
     RingText = loadingPageText;
     RingContentVisibility = true;
 }
Example #5
0
 private void OnWebNavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
 {
     NotificationIds.Add(Context.ShowProgress(Strings.ProgressIndicator_Loading));
 }
        private void Control_FrameNavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
        {
            string referrer = args.Uri.AbsoluteUri;

            if (Element != null && Element.Source != null && Element.Source is UrlWebViewSource)
            {
                referrer = ((UrlWebViewSource)Element.Source).Url;
            }

            var eventArgs = ManageRequestHandling(args.Uri.AbsoluteUri, referrer);

            args.Cancel = eventArgs.Cancel;
        }
Example #7
0
 private void Control_NavigationStarting(Windows.UI.Xaml.Controls.WebView sender, Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args)
 {
     sender.AddWebAllowedObject("CustomJavaScript", communicator);
 }