Click or drag to resize

ChromiumWebBrowser Events

Version 106.0.290

The ChromiumWebBrowser type exposes the following members.

Events
  NameDescription
Public eventAddressChanged
Event called when the browser address has changed
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).
Public eventContextMenuClosing
Occurs just before any context menu on the element is closed.
(Inherited from FrameworkElement.)
Public eventContextMenuOpening
Occurs when any context menu on the element is opened.
(Inherited from FrameworkElement.)
Public eventDataContextChanged
Occurs when the data context for this element changes.
(Inherited from FrameworkElement.)
Public eventDragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
(Inherited from UIElement.)
Public eventDragLeave
Occurs when the input system reports an underlying drag event with this element as the drag origin.
(Inherited from UIElement.)
Public eventDragOver
Occurs when the input system reports an underlying drag event with this element as the potential drop target.
(Inherited from UIElement.)
Public eventDrop
Occurs when the input system reports an underlying drop event with this element as the drop target.
(Inherited from UIElement.)
Public eventFocusableChanged
Occurs when the value of the Focusable property changes.
(Inherited from UIElement.)
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.
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.
Public eventGiveFeedback
Occurs when the input system reports an underlying drag-and-drop event that involves this element.
(Inherited from UIElement.)
Public eventGotFocus
Occurs when this element gets logical focus.
(Inherited from UIElement.)
Public eventGotKeyboardFocus
Occurs when the keyboard is focused on this element.
(Inherited from UIElement.)
Public eventGotMouseCapture
Occurs when this element captures the mouse.
(Inherited from UIElement.)
Public eventGotStylusCapture
Occurs when this element captures the stylus.
(Inherited from UIElement.)
Public eventGotTouchCapture
Occurs when a touch is captured to this element.
(Inherited from UIElement.)
Public eventInitialized
Occurs when this FrameworkElement is initialized. This event coincides with cases where the value of the IsInitialized property changes from (or undefined) to .
(Inherited from FrameworkElement.)
Public eventIsBrowserInitializedChanged
Event called after the underlying CEF browser instance has been created.
Public eventIsEnabledChanged
Occurs when the value of the IsEnabled property on this element changes.
(Inherited from UIElement.)
Public eventIsHitTestVisibleChanged
Occurs when the value of the IsHitTestVisible dependency property changes on this element.
(Inherited from UIElement.)
Public eventIsKeyboardFocusedChanged
Occurs when the value of the IsKeyboardFocused property changes on this element.
(Inherited from UIElement.)
Public eventIsKeyboardFocusWithinChanged
Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element.
(Inherited from UIElement.)
Public eventIsMouseCapturedChanged
Occurs when the value of the IsMouseCaptured property changes on this element.
(Inherited from UIElement.)
Public eventIsMouseCaptureWithinChanged
Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.
(Inherited from UIElement.)
Public eventIsMouseDirectlyOverChanged
Occurs when the value of the IsMouseDirectlyOver property changes on this element.
(Inherited from UIElement.)
Public eventIsStylusCapturedChanged
Occurs when the value of the IsStylusCaptured property changes on this element.
(Inherited from UIElement.)
Public eventIsStylusCaptureWithinChanged
Occurs when the value of the IsStylusCaptureWithin property changes on this element.
(Inherited from UIElement.)
Public eventIsStylusDirectlyOverChanged
Occurs when the value of the IsStylusDirectlyOver property changes on this element.
(Inherited from UIElement.)
Public eventIsVisibleChanged
Occurs when the value of the IsVisible property changes on this element.
(Inherited from UIElement.)
Public eventJavascriptMessageReceived
Event handler that will get called when the message that originates from CefSharp.PostMessage
Public eventKeyDown
Occurs when a key is pressed while focus is on this element.
(Inherited from UIElement.)
Public eventKeyUp
Occurs when a key is released while focus is on this element.
(Inherited from UIElement.)
Public eventLayoutUpdated
Occurs when the layout of the various visual elements associated with the current Dispatcher changes.
(Inherited from UIElement.)
Public eventLoaded
Occurs when the element is laid out, rendered, and ready for interaction.
(Inherited from FrameworkElement.)
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.
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.
Public eventLostFocus
Occurs when this element loses logical focus.
(Inherited from UIElement.)
Public eventLostKeyboardFocus
Occurs when the keyboard is no longer focused on this element,.
(Inherited from UIElement.)
Public eventLostMouseCapture
Occurs when this element loses mouse capture.
(Inherited from UIElement.)
Public eventLostStylusCapture
Occurs when this element loses stylus capture.
(Inherited from UIElement.)
Public eventLostTouchCapture
Occurs when this element loses a touch capture.
(Inherited from UIElement.)
Public eventManipulationBoundaryFeedback
Occurs when the manipulation encounters a boundary.
(Inherited from UIElement.)
Public eventManipulationCompleted
Occurs when a manipulation and inertia on the UIElement object is complete.
(Inherited from UIElement.)
Public eventManipulationDelta
Occurs when the input device changes position during a manipulation.
(Inherited from UIElement.)
Public eventManipulationInertiaStarting
Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.
(Inherited from UIElement.)
Public eventManipulationStarted
Occurs when an input device begins a manipulation on the UIElement object.
(Inherited from UIElement.)
Public eventManipulationStarting
Occurs when the manipulation processor is first created.
(Inherited from UIElement.)
Public eventMouseDoubleClick
Occurs when a mouse button is clicked two or more times.
(Inherited from Control.)
Public eventMouseDown
Occurs when any mouse button is pressed while the pointer is over this element.
(Inherited from UIElement.)
Public eventMouseEnter
Occurs when the mouse pointer enters the bounds of this element.
(Inherited from UIElement.)
Public eventMouseLeave
Occurs when the mouse pointer leaves the bounds of this element.
(Inherited from UIElement.)
Public eventMouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventMouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventMouseMove
Occurs when the mouse pointer moves while over this element.
(Inherited from UIElement.)
Public eventMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventMouseUp
Occurs when any mouse button is released over this element.
(Inherited from UIElement.)
Public eventMouseWheel
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
(Inherited from UIElement.)
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 eventPreviewDragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
(Inherited from UIElement.)
Public eventPreviewDragLeave
Occurs when the input system reports an underlying drag event with this element as the drag origin.
(Inherited from UIElement.)
Public eventPreviewDragOver
Occurs when the input system reports an underlying drag event with this element as the potential drop target.
(Inherited from UIElement.)
Public eventPreviewDrop
Occurs when the input system reports an underlying drop event with this element as the drop target.
(Inherited from UIElement.)
Public eventPreviewGiveFeedback
Occurs when a drag-and-drop operation is started.
(Inherited from UIElement.)
Public eventPreviewGotKeyboardFocus
Occurs when the keyboard is focused on this element.
(Inherited from UIElement.)
Public eventPreviewKeyDown
Occurs when a key is pressed while focus is on this element.
(Inherited from UIElement.)
Public eventPreviewKeyUp
Occurs when a key is released while focus is on this element.
(Inherited from UIElement.)
Public eventPreviewLostKeyboardFocus
Occurs when the keyboard is no longer focused on this element.
(Inherited from UIElement.)
Public eventPreviewMouseDoubleClick
Occurs when a user clicks the mouse button two or more times.
(Inherited from Control.)
Public eventPreviewMouseDown
Occurs when any mouse button is pressed while the pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseMove
Occurs when the mouse pointer moves while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseUp
Occurs when any mouse button is released while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewMouseWheel
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewQueryContinueDrag
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
(Inherited from UIElement.)
Public eventPreviewStylusButtonDown
Occurs when the stylus button is pressed while the pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewStylusButtonUp
Occurs when the stylus button is released while the pointer is over this element.
(Inherited from UIElement.)
Public eventPreviewStylusDown
Occurs when the stylus touches the digitizer while it is over this element.
(Inherited from UIElement.)
Public eventPreviewStylusInAirMove
Occurs when the stylus moves over an element without actually touching the digitizer.
(Inherited from UIElement.)
Public eventPreviewStylusInRange
Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
(Inherited from UIElement.)
Public eventPreviewStylusMove
Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.
(Inherited from UIElement.)
Public eventPreviewStylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected.
(Inherited from UIElement.)
Public eventPreviewStylusSystemGesture
Occurs when a user performs one of several stylus gestures.
(Inherited from UIElement.)
Public eventPreviewStylusUp
Occurs when the user raises the stylus off the digitizer while the stylus is over this element.
(Inherited from UIElement.)
Public eventPreviewTextInput
Occurs when this element gets text in a device-independent manner.
(Inherited from UIElement.)
Public eventPreviewTouchDown
Occurs when a finger touches the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventPreviewTouchMove
Occurs when a finger moves on the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventPreviewTouchUp
Occurs when a finger is raised off of the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventQueryContinueDrag
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
(Inherited from UIElement.)
Public eventQueryCursor
Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.
(Inherited from UIElement.)
Public eventRequestBringIntoView
Occurs when BringIntoView(Rect) is called on this element.
(Inherited from FrameworkElement.)
Public eventSizeChanged
Occurs when either the ActualHeight or the ActualWidth properties change value on this element.
(Inherited from FrameworkElement.)
Public eventSourceUpdated
Occurs when the source value changes for any existing property binding on this element.
(Inherited from FrameworkElement.)
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).
Public eventStylusButtonDown
Occurs when the stylus button is pressed while the pointer is over this element.
(Inherited from UIElement.)
Public eventStylusButtonUp
Occurs when the stylus button is released while the pointer is over this element.
(Inherited from UIElement.)
Public eventStylusDown
Occurs when the stylus touches the digitizer while the stylus is over this element.
(Inherited from UIElement.)
Public eventStylusEnter
Occurs when the stylus enters the bounds of this element.
(Inherited from UIElement.)
Public eventStylusInAirMove
Occurs when the stylus moves over an element without actually touching the digitizer.
(Inherited from UIElement.)
Public eventStylusInRange
Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
(Inherited from UIElement.)
Public eventStylusLeave
Occurs when the stylus leaves the bounds of the element.
(Inherited from UIElement.)
Public eventStylusMove
Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead.
(Inherited from UIElement.)
Public eventStylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected, while over this element.
(Inherited from UIElement.)
Public eventStylusSystemGesture
Occurs when a user performs one of several stylus gestures.
(Inherited from UIElement.)
Public eventStylusUp
Occurs when the user raises the stylus off the digitizer while it is over this element.
(Inherited from UIElement.)
Public eventTargetUpdated
Occurs when the target value changes for any property binding on this element.
(Inherited from FrameworkElement.)
Public eventTextInput
Occurs when this element gets text in a device-independent manner.
(Inherited from UIElement.)
Public eventTitleChanged
Event handler that will get called when the browser title changes
Public eventToolTipClosing
Occurs just before any tooltip on the element is closed.
(Inherited from FrameworkElement.)
Public eventToolTipOpening
Occurs when any tooltip on the element is opened.
(Inherited from FrameworkElement.)
Public eventTouchDown
Occurs when a finger touches the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventTouchEnter
Occurs when a touch moves from outside to inside the bounds of this element.
(Inherited from UIElement.)
Public eventTouchLeave
Occurs when a touch moves from inside to outside the bounds of this element.
(Inherited from UIElement.)
Public eventTouchMove
Occurs when a finger moves on the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventTouchUp
Occurs when a finger is raised off of the screen while the finger is over this element.
(Inherited from UIElement.)
Public eventUnloaded
Occurs when the element is removed from within an element tree of loaded elements.
(Inherited from FrameworkElement.)
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