private void Webview_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs args) { args.Handled = true; string uri = args.Uri.ToString(); webview.Navigate(new Uri(uri)); }
private void WebView_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e) { Debug.WriteLine(callerName()); if (IsMain) { // Main View の場合は、サブビューに表示 RequestLoadInSubview.OnNext(e.Uri.ToString()); } else { // サブビューの場合は、自分自身に表示 Navigate(e.Uri.ToString()); } e.Handled = true; }
private void OnNewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e) { Context.DispatchEvent("TRACE", $@"NewWindowRequested: {e.Uri}"); }
private void WebView_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e) { Log($"Browser_NewWindowRequested: {e.Uri}"); SharedCode.Web.SystemBrowser.OpenBrowser(e.Uri.ToString()); }
private void OnNewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e) { Load(e.Uri.ToString()); }
private void Viewport_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e) { this.logger.Info($"New window requested... for {e.Uri}, navigating to location in the current view"); TimerUtility.RunDelayedAction(() => this.SafeViewport.Navigate(e.Uri), TimeSpan.FromMilliseconds(2000)); }