Пример #1
0
		protected internal bool SendNavigatingCanceled(string url)
		{
			if (Element == null || string.IsNullOrWhiteSpace(url))
				return true;

			if (url == AssetBaseUrl)
				return false;

			var args = new WebNavigatingEventArgs(_eventState, new UrlWebViewSource { Url = url }, url);
			SyncNativeCookies(url);
			ElementController.SendNavigating(args);
			UpdateCanGoBackForward();
			UrlCanceled = args.Cancel ? null : url;
			return args.Cancel;
		}
Пример #2
0
        protected internal bool SendNavigatingCanceled(string url)
        {
            if (Element == null || string.IsNullOrWhiteSpace(url))
            {
                return(true);
            }

            if (url == AssetBaseUrl)
            {
                return(false);
            }

            var args = new WebNavigatingEventArgs(WebNavigationEvent.NewPage, new UrlWebViewSource {
                Url = url
            }, url);

            ElementController.SendNavigating(args);
            UpdateCanGoBackForward();
            UrlCanceled = args.Cancel ? null : url;
            return(args.Cancel);
        }
Пример #3
0
#pragma warning disable CA1054 // Uri parameters should not be strings
        protected internal bool SendNavigatingCanceled(string url)
#pragma warning restore CA1054 // Uri parameters should not be strings
        {
            if (Element == null || string.IsNullOrWhiteSpace(url))
            {
                return(true);
            }

            if (url == AssetBaseUrl)
            {
                return(false);
            }

            var args = new WebNavigatingEventArgs(_eventState, new UrlWebViewSource {
                Url = url
            }, url);

            SyncNativeCookies(url);
            ElementController.SendNavigating(args);
            UpdateCanGoBackForward();
            UrlCanceled = args.Cancel ? null : url;
            return(args.Cancel);
        }