private void Webview_CreateWindow(object sender, CreateWindowEventArgs e) { TabControl tabs = this.FindTabControl(); if (tabs == null) { e.Cancel = true; return; } var wpfwindow = System.Windows.Window.GetWindow(this); if (wpfwindow == null) { throw new InvalidOperationException("Window not found!"); } var webview = new CustomWebView((WebView)this.WebView); e.WindowInfo.SetAsWindowless(new WindowInteropHelper(wpfwindow).Handle); e.Client = webview.Client; OnCreateWindow(webview); }
public CustomWebViewGlue(CustomWebView view) : base(view) { }