Click or drag to resize

LoadHandler Class

Version 130.1.90
A WinForms Specific ILoadHandler implementation that simplifies the process of hosting a Popup as a Control/Tab.Use this implementation as a base for your own custom implementation if you are using Create(CreatePopupChromiumHostControl)
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerLoadHandler
    CefSharp.WinForms.HandlerLoadHandler

Namespace: CefSharp.WinForms.Handler
Assembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class LoadHandler : LoadHandler

The LoadHandler type exposes the following members.

Constructors
 NameDescription
Public methodLoadHandlerInitializes a new instance of the LoadHandler class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnFrameLoadEnd Called when the browser is done loading a frame. The Frame value will never be empty Check the IsMain method to see if this frame is the main 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 will always be called for all frames irrespective of whether the request completes successfully. This method will be called on the CEF UI thread. Blocking this thread will likely cause your UI to become unresponsive and/or hang.
(Overrides LoadHandlerOnFrameLoadEnd(IWebBrowser, FrameLoadEndEventArgs))
Protected methodOnFrameLoadStart Called when the browser begins loading a frame. The Frame value will never be empty Check the IsMain method to see if this frame is the main 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(IWebBrowser, LoadingStateChangedEventArgs) instead. This method will be called on the CEF UI thread. Blocking this thread will likely cause your UI to become unresponsive and/or hang.
(Overrides LoadHandlerOnFrameLoadStart(IWebBrowser, FrameLoadStartEventArgs))
Protected methodOnLoadError Called when the resource load for a navigation fails or is canceled. ErrorCode is the error code number, ErrorText is the error text and FailedUrl is the URL that failed to load. See net\base\net_error_list.h for complete descriptions of the error codes. This method will be called on the CEF UI thread. Blocking this thread will likely cause your UI to become unresponsive and/or hang.
(Overrides LoadHandlerOnLoadError(IWebBrowser, LoadErrorEventArgs))
Protected methodOnLoadingStateChange Called when the loading state has changed. This callback will be executed twice once when loading is initiated either programmatically or by user action, and once when loading is terminated due to completion, cancellation of failure. This method will be called on the CEF UI thread. Blocking this thread will likely cause your UI to become unresponsive and/or hang.
(Overrides LoadHandlerOnLoadingStateChange(IWebBrowser, LoadingStateChangedEventArgs))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also