void lifeSpanHandler_OnAfterCreated(object sender, Chromium.Event.CfxOnAfterCreatedEventArgs e) { if (Browser != null) { } else { Browser = e.Browser; Browser.MainFrame.LoadUrl("about:version"); //if (!string.IsNullOrEmpty(initialUrl)) //{ // Browser.MainFrame.LoadUrl(initialUrl); //} OnBrowserCreated(e); } var br = e.Browser; // browser.MainFrame.LoadUrl("about:version"); Invoke((MethodInvoker)(() => { if (Focused) { br.Host.SendFocusEvent(true); } })); }
void lifeSpanHandler_OnAfterCreated(object sender, Chromium.Event.CfxOnAfterCreatedEventArgs e) { browser = e.Browser; HTMLTextureNode.nodes[browser.Identifier] = this; Start(); browser.Host.WasResized(); invalidate = true; }