Click or drag to resize

IWpfWebBrowser Events

Version 130.1.90

The IWpfWebBrowser type exposes the following members.

Events
 NameDescription
Public eventConsoleMessage Event handler for receiving Javascript console messages being sent from web pages. 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. (The exception to this is when you're running with settings.MultiThreadedMessageLoop = false, then they'll be the same thread).
(Inherited from IChromiumWebBrowserBase)
Public eventFrameLoadEnd Event handler that will get called when the browser is done 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 will always be called for all frames irrespective of whether the request completes successfully. 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.
(Inherited from IChromiumWebBrowserBase)
Public eventFrameLoadStart 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.
(Inherited from IChromiumWebBrowserBase)
Public eventGotKeyboardFocusOccurs when the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventGotMouseCaptureOccurs when the element captures the mouse.
(Inherited from IInputElement)
Public eventGotStylusCaptureOccurs when the element captures the stylus.
(Inherited from IInputElement)
Public eventJavascriptMessageReceived Event handler that will get called when the message that originates from CefSharp.PostMessage
(Inherited from IWebBrowser)
Public eventKeyDownOccurs when a key is pressed while the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventKeyUpOccurs when a key is released while the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventLoadError Event handler that will get called when the resource load for a navigation fails or is canceled. 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.
(Inherited from IChromiumWebBrowserBase)
Public eventLoadingStateChanged Event handler that will get called when the Loading state has changed. This event will be fired twice. Once when loading is initiated either programmatically or by user action, and once when loading is terminated due to completion, cancellation of failure. 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.
(Inherited from IChromiumWebBrowserBase)
Public eventLostKeyboardFocusOccurs when the keyboard is no longer focused on this element.
(Inherited from IInputElement)
Public eventLostMouseCaptureOccurs when this element loses mouse capture.
(Inherited from IInputElement)
Public eventLostStylusCaptureOccurs when this element loses stylus capture.
(Inherited from IInputElement)
Public eventMouseEnterOccurs when the mouse pointer enters the bounds of this element.
(Inherited from IInputElement)
Public eventMouseLeaveOccurs when the mouse pointer leaves the bounds of this element.
(Inherited from IInputElement)
Public eventMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventMouseMoveOccurs when the mouse pointer moves while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventMouseWheelOccurs when the mouse wheel moves while the mouse pointer is over this element.
(Inherited from IInputElement)
Public eventPaint Raised every time OnPaint(PaintElementType, Rect, IntPtr, Int32, Int32) is called. You can access the underlying buffer, though it's preferable to either override OnPaint(Boolean, Rect, IntPtr, Int32, Int32) or implement your own IRenderHandler as there is no outwardly accessible locking (locking is done within the default IRenderHandler implementations). 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
Public eventPreviewGotKeyboardFocusOccurs when the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventPreviewKeyDownOccurs when a key is pressed while the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventPreviewKeyUpOccurs when a key is released while the keyboard is focused on this element.
(Inherited from IInputElement)
Public eventPreviewLostKeyboardFocusOccurs when the keyboard is no longer focused on this element.
(Inherited from IInputElement)
Public eventPreviewMouseLeftButtonDownOccurs when the left mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventPreviewMouseLeftButtonUpOccurs when the left mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventPreviewMouseMoveOccurs when the mouse pointer moves while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventPreviewMouseRightButtonDownOccurs when the right mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventPreviewMouseRightButtonUpOccurs when the right mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement)
Public eventPreviewMouseWheelOccurs when the mouse wheel moves while the mouse pointer is over this element.
(Inherited from IInputElement)
Public eventPreviewStylusButtonDownOccurs when the stylus button is pressed down while the stylus is over this element.
(Inherited from IInputElement)
Public eventPreviewStylusButtonUpOccurs when the stylus button is released while the stylus is over this element.
(Inherited from IInputElement)
Public eventPreviewStylusDownOccurs when the stylus touches the digitizer while over this element.
(Inherited from IInputElement)
Public eventPreviewStylusInAirMoveOccurs when the stylus moves over an element, but without touching the digitizer.
(Inherited from IInputElement)
Public eventPreviewStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected.
(Inherited from IInputElement)
Public eventPreviewStylusMoveOccurs when the stylus moves while the stylus is over the element.
(Inherited from IInputElement)
Public eventPreviewStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected.
(Inherited from IInputElement)
Public eventPreviewStylusSystemGestureOccurs when one of several stylus gestures are detected, for example, Tap or Drag.
(Inherited from IInputElement)
Public eventPreviewStylusUpOccurs when the stylus is raised off the digitizer while over this element.
(Inherited from IInputElement)
Public eventPreviewTextInputOccurs when this element gets text in a device-independent manner.
(Inherited from IInputElement)
Public eventStatusMessage Event handler for changes to the status message. 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. (The exception to this is when you're running with settings.MultiThreadedMessageLoop = false, then they'll be the same thread).
(Inherited from IChromiumWebBrowserBase)
Public eventStylusButtonDownOccurs when the stylus button is pressed while the stylus is over this element.
(Inherited from IInputElement)
Public eventStylusButtonUpOccurs when the stylus button is released while the stylus is over this element.
(Inherited from IInputElement)
Public eventStylusDownOccurs when the stylus touches the digitizer while over this element.
(Inherited from IInputElement)
Public eventStylusEnterOccurs when the stylus cursor enters the bounds of the element.
(Inherited from IInputElement)
Public eventStylusInAirMoveOccurs when the stylus moves over an element, but without touching the digitizer.
(Inherited from IInputElement)
Public eventStylusInRangeOccurs when the stylus is close enough to the digitizer to be detected.
(Inherited from IInputElement)
Public eventStylusLeaveOccurs when the stylus cursor leaves the bounds of the element.
(Inherited from IInputElement)
Public eventStylusMoveOccurs when the stylus cursor moves over the element.
(Inherited from IInputElement)
Public eventStylusOutOfRangeOccurs when the stylus is too far from the digitizer to be detected.
(Inherited from IInputElement)
Public eventStylusSystemGestureOccurs when one of several stylus gestures are detected, for example, Tap or Drag.
(Inherited from IInputElement)
Public eventStylusUpOccurs when the stylus is raised off the digitizer while over this element.
(Inherited from IInputElement)
Public eventTextInputOccurs when this element gets text in a device-independent manner.
(Inherited from IInputElement)
Public eventVirtualKeyboardRequested Raised every time OnVirtualKeyboardRequested(IBrowser, TextInputMode) is called. 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
Top
See Also