You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are still some CEF bugs that mean this is still classed as experimental. One such issue was reported at #3847 (comment)
It's important to remember that only bugs in CefSharp can be fixed directly in this repository, CEF has it's own issue tracker at https://bitbucket.org/chromiumembedded/cef
// Open popup (browser) in a new WPF Window// Can be used to host in TabControl/ContentControl/etcbrowser.LifeSpanHandler=CefSharp.Wpf.Experimental.LifeSpanHandler.Create().OnPopupCreated((ctrl,targetUrl,targetFrameName,windowInfo)=>{varwindowX=(windowInfo.X==int.MinValue)?double.NaN:windowInfo.X;varwindowY=(windowInfo.Y==int.MinValue)?double.NaN:windowInfo.Y;varwindowWidth=(windowInfo.Width==int.MinValue)?double.NaN:windowInfo.Width;varwindowHeight=(windowInfo.Height==int.MinValue)?double.NaN:windowInfo.Height;varpopup=newSystem.Windows.Window{Left=windowX,Top=windowY,Width=windowWidth,Height=windowHeight,Content=ctrl,Owner=Window.GetWindow(browser),Title=targetFrameName};popup.Closed+=(o,e)=>{varw=oasSystem.Windows.Window;if(w!=null&&w.ContentisIWebBrowser){(w.ContentasIWebBrowser)?.Dispose();w.Content=null;}};}).OnPopupBrowserCreated((ctrl,browser)=>{ctrl.Dispatcher.Invoke(()=>{varowner=System.Windows.Window.GetWindow(ctrl);if(owner!=null&&owner.Content==ctrl){owner.Show();}});}).OnPopupDestroyed((ctrl,popupBrowser)=>{//If browser is disposed then we don't need to remove the tabif(!ctrl.IsDisposed){varowner=System.Windows.Window.GetWindow(ctrl);if(owner!=null&&owner.Content==ctrl){owner.Close();}}}).Build();
The text was updated successfully, but these errors were encountered:
amaitland
changed the title
Enhancement - WPF Add Experimental LifeSpanHandler capable of hosting popups as Tabs/Controls
WPF - Add Experimental LifeSpanHandler capable of hosting popups as Tabs/Controls
Oct 25, 2022
amaitland
changed the title
WPF - Add Experimental LifeSpanHandler capable of hosting popups as Tabs/Controls
WPF - Add Experimental LifeSpanHandler capable of hosting popups using TabControl/ContentControl
Oct 25, 2022
Add LifeSpanHandler implementation capable of hosting popups as Tabs/Controls
There are still some CEF bugs that mean this is still classed as experimental. One such issue was reported at #3847 (comment)
It's important to remember that only bugs in
CefSharp
can be fixed directly in this repository, CEF has it's own issue tracker at https://bitbucket.org/chromiumembedded/cefExample:
The text was updated successfully, but these errors were encountered: