LifeSpanHandlerCreate Method |
Version 130.1.90
Create a new instance of the
LifeSpanHandlerBuilder
which can be used to create a WinForms specific
ILifeSpanHandler
implementation that simplifies the process of hosting a Popup as a Control/Tab.
In scnarios where you also need to implement
ILoadHandler then instead
of implementing directly you will need to inherit from
LoadHandler.
As it provides base functionality required to make
ChromiumHostControl events work correctly.
Namespace: CefSharp.WinForms.HandlerAssembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public static LifeSpanHandlerBuilder Create(
CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate = null
)
public:
static LifeSpanHandlerBuilder^ Create(
CreatePopupChromiumHostControl^ chromiumHostControlCreatedDelegate = nullptr
)
Parameters
- chromiumHostControlCreatedDelegate CreatePopupChromiumHostControl (Optional)
[Missing <param name="chromiumHostControlCreatedDelegate"/> documentation for "M:CefSharp.WinForms.Handler.LifeSpanHandler.Create(CefSharp.WinForms.Handler.CreatePopupChromiumHostControl)"]
Return Value
LifeSpanHandlerBuilder
A
LifeSpanHandlerBuilder which can be used to fluently create an
ILifeSpanHandler.
Call
Build to create the actual instance after you have call
OnPopupCreated(OnPopupCreatedDelegate) etc.
See Also