internal void OnNavigationStarting(WebViewNavigationStartingEventArgs args) { if (args.Uri == null) { //This case should not happen when navigating normally using http requests. //This is to stop a scenario where the webview is initialized without having a source args.Cancel = true; return; } if (args.Uri.Scheme.Equals(Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase)) { ParseUriAndLauchMailto(args.Uri); args.Cancel = true; return; } NavigationStarting?.Invoke(this, args); }
private void OnBrowserNavigating(object sender, WebBrowserNavigatingEventArgs e) { NavigationStarting?.Invoke(sender, e); ContentLoading?.Invoke(sender, e); }