public static void Show(string address, CefSharp.IPopupFeatures popupFeatures) { new PopupWebPage(address) { Left = popupFeatures.X, Top = popupFeatures.Y, Width = popupFeatures.Width, Height = popupFeatures.Height }.Show(); }
public bool OnBeforePopup(CefSharp.IWebBrowser chromiumWebBrowser, CefSharp.IBrowser browser, CefSharp.IFrame frame, string targetUrl, string targetFrameName, CefSharp.WindowOpenDisposition targetDisposition, bool userGesture, CefSharp.IPopupFeatures popupFeatures, CefSharp.IWindowInfo windowInfo, CefSharp.IBrowserSettings browserSettings, ref bool noJavascriptAccess, out CefSharp.IWebBrowser newBrowser) { newBrowser = null; if (BeforePopupEvent == null) { return(false); } NewWindowEventArgs e = new NewWindowEventArgs(chromiumWebBrowser, browser, frame, targetUrl, targetFrameName, targetDisposition, windowInfo); BeforePopupEvent(this, e); if (e.newBrowser == null) { return(false); } //newBrowser = e.newBrowser; return(true); }