ChromiumWebBrowserFrameLoadStart Event |
Version 55.0.0
Event handler that will get called when the browser begins loading a frame. Multiple frames may be loading at the same
time. Sub-frames may start or continue loading after the main frame load has ended. This method may not be called for a
particular frame if the load request for that frame fails. For notification of overall browser load status use
OnLoadingStateChange instead.
It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI
thread. It is unwise to block on this thread for any length of time as your browser will become unresponsive and/or hang..
To access UI elements you'll need to Invoke/Dispatch onto the UI Thread.
Namespace: CefSharp.WpfAssembly: CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 55.0.0.0 (55.0.0.0)
Syntax public event EventHandler<FrameLoadStartEventArgs> FrameLoadStart
public:
virtual event EventHandler<FrameLoadStartEventArgs^>^ FrameLoadStart {
void add (EventHandler<FrameLoadStartEventArgs^>^ value);
void remove (EventHandler<FrameLoadStartEventArgs^>^ value);
}
Value
Type:
SystemEventHandlerFrameLoadStartEventArgsImplements
IWebBrowserFrameLoadStartRemarks Whilst this may seem like a logical place to execute js, it's called before the DOM has been loaded, implement
OnContextCreated(IWebBrowser, IBrowser, IFrame) as it's called when the underlying V8Context is created
(Only called for the main frame at this stage)
See Also