private void Webview_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs args)
        {
            args.Handled = true;
            string uri = args.Uri.ToString();

            webview.Navigate(new Uri(uri));
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 private void OnNewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e)
 {
     Context.DispatchEvent("TRACE", $@"NewWindowRequested: {e.Uri}");
 }
Exemplo n.º 4
0
 private void WebView_NewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e)
 {
     Log($"Browser_NewWindowRequested: {e.Uri}");
     SharedCode.Web.SystemBrowser.OpenBrowser(e.Uri.ToString());
 }
Exemplo n.º 5
0
 private void OnNewWindowRequested(object sender, WebViewControlNewWindowRequestedEventArgs e)
 {
     Load(e.Uri.ToString());
 }
Exemplo n.º 6
0
 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));
 }