Click or drag to resize

IWpfWebBrowser Events

Version 94.4.20

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 IWebBrowser.)
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 IWebBrowser.)
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 IWebBrowser.)
Public eventGotKeyboardFocus
Occurs when the keyboard is focused on this element.
(Inherited from IInputElement.)
Public eventGotMouseCapture
Occurs when the element captures the mouse.
(Inherited from IInputElement.)
Public eventGotStylusCapture
Occurs 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 eventKeyDown
Occurs when a key is pressed while the keyboard is focused on this element.
(Inherited from IInputElement.)
Public eventKeyUp
Occurs 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 IWebBrowser.)
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 IWebBrowser.)
Public eventLostKeyboardFocus
Occurs when the keyboard is no longer focused on this element.
(Inherited from IInputElement.)
Public eventLostMouseCapture
Occurs when this element loses mouse capture.
(Inherited from IInputElement.)
Public eventLostStylusCapture
Occurs when this element loses stylus capture.
(Inherited from IInputElement.)
Public eventMouseEnter
Occurs when the mouse pointer enters the bounds of this element.
(Inherited from IInputElement.)
Public eventMouseLeave
Occurs when the mouse pointer leaves the bounds of this element.
(Inherited from IInputElement.)
Public eventMouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventMouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventMouseMove
Occurs when the mouse pointer moves while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventMouseWheel
Occurs 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 eventPreviewGotKeyboardFocus
Occurs when the keyboard is focused on this element.
(Inherited from IInputElement.)
Public eventPreviewKeyDown
Occurs when a key is pressed while the keyboard is focused on this element.
(Inherited from IInputElement.)
Public eventPreviewKeyUp
Occurs when a key is released while the keyboard is focused on this element.
(Inherited from IInputElement.)
Public eventPreviewLostKeyboardFocus
Occurs when the keyboard is no longer focused on this element.
(Inherited from IInputElement.)
Public eventPreviewMouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventPreviewMouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventPreviewMouseMove
Occurs when the mouse pointer moves while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventPreviewMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventPreviewMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over the element.
(Inherited from IInputElement.)
Public eventPreviewMouseWheel
Occurs when the mouse wheel moves while the mouse pointer is over this element.
(Inherited from IInputElement.)
Public eventPreviewStylusButtonDown
Occurs when the stylus button is pressed down while the stylus is over this element.
(Inherited from IInputElement.)
Public eventPreviewStylusButtonUp
Occurs when the stylus button is released while the stylus is over this element.
(Inherited from IInputElement.)
Public eventPreviewStylusDown
Occurs when the stylus touches the digitizer while over this element.
(Inherited from IInputElement.)
Public eventPreviewStylusInAirMove
Occurs when the stylus moves over an element, but without touching the digitizer.
(Inherited from IInputElement.)
Public eventPreviewStylusInRange
Occurs when the stylus is close enough to the digitizer to be detected.
(Inherited from IInputElement.)
Public eventPreviewStylusMove
Occurs when the stylus moves while the stylus is over the element.
(Inherited from IInputElement.)
Public eventPreviewStylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected.
(Inherited from IInputElement.)
Public eventPreviewStylusSystemGesture
Occurs when one of several stylus gestures are detected, for example, Tap or Drag.
(Inherited from IInputElement.)
Public eventPreviewStylusUp
Occurs when the stylus is raised off the digitizer while over this element.
(Inherited from IInputElement.)
Public eventPreviewTextInput
Occurs 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 IWebBrowser.)
Public eventStylusButtonDown
Occurs when the stylus button is pressed while the stylus is over this element.
(Inherited from IInputElement.)
Public eventStylusButtonUp
Occurs when the stylus button is released while the stylus is over this element.
(Inherited from IInputElement.)
Public eventStylusDown
Occurs when the stylus touches the digitizer while over this element.
(Inherited from IInputElement.)
Public eventStylusEnter
Occurs when the stylus cursor enters the bounds of the element.
(Inherited from IInputElement.)
Public eventStylusInAirMove
Occurs when the stylus moves over an element, but without touching the digitizer.
(Inherited from IInputElement.)
Public eventStylusInRange
Occurs when the stylus is close enough to the digitizer to be detected.
(Inherited from IInputElement.)
Public eventStylusLeave
Occurs when the stylus cursor leaves the bounds of the element.
(Inherited from IInputElement.)
Public eventStylusMove
Occurs when the stylus cursor moves over the element.
(Inherited from IInputElement.)
Public eventStylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected.
(Inherited from IInputElement.)
Public eventStylusSystemGesture
Occurs when one of several stylus gestures are detected, for example, Tap or Drag.
(Inherited from IInputElement.)
Public eventStylusUp
Occurs when the stylus is raised off the digitizer while over this element.
(Inherited from IInputElement.)
Public eventTextInput
Occurs 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