- If the popup is being hosted on a Form that is being Closed/Disposed
as we attempt to call Control.Invoke we can end up with an ObjectDisposedException
- Add new CreatePopupChromiumHostControl delegate which can be passed to
LifeSpanHandler.Create to create a new ChromiumHostControl instance.
You can create a class that inherits from ChromiumHostControl and add
additional functionality.
LifeSpanHandler
.Create(() =>
{
return new ChromiumHostControl
{
Dock = DockStyle.Fill
};
})
- Create ChromiumHostControlBase as common base class for ChromiumHostControl and ChromiumWebBrowser
- ChromiumHostControl is now the specific implementation for hosting popups
Has AddressChanged, LoadingStateChanged, etc events
- Can now access the IBrowser property via ChromiumHostControl.BrowserCore
- The ChromiumHostControl.IsBrowserInitialized event will be raised when
the underlying CEF browser has been created.
* WinForms - Add LifeSpanHandler implementation capable of hosting popups as Tabs/Child controls in WinForms
- Update Example
- Remove PopupAsChildHelper and example LifeSpanHandler
- Examples always opens popups as tabs now.
- Improve xml doc and comments
- Make ParentFormMessageInterceptor public
- Make ChromiumHostControl public, move into CefSharp.WinForms.Host namespace
Rather than having the class in the CefSharp.WinForms namespace and potentially
confuse users, move into it's own namespace.
- Clarify ShowDevToolsDocked needs to be used with the new WinForms lifespan handler