IWpfWebBrowser Events |
The IWpfWebBrowser type exposes the following members.
Name | Description | |
---|---|---|
ConsoleMessage |
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.) | |
FrameLoadEnd |
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.) | |
FrameLoadStart |
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.) | |
GotKeyboardFocus | Occurs when the keyboard is focused on this element. (Inherited from IInputElement.) | |
GotMouseCapture | Occurs when the element captures the mouse. (Inherited from IInputElement.) | |
GotStylusCapture | Occurs when the element captures the stylus. (Inherited from IInputElement.) | |
JavascriptMessageReceived |
Event handler that will get called when the message that originates from CefSharp.PostMessage
(Inherited from IWebBrowser.) | |
KeyDown | Occurs when a key is pressed while the keyboard is focused on this element. (Inherited from IInputElement.) | |
KeyUp | Occurs when a key is released while the keyboard is focused on this element. (Inherited from IInputElement.) | |
LoadError |
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.) | |
LoadingStateChanged |
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.) | |
LostKeyboardFocus | Occurs when the keyboard is no longer focused on this element. (Inherited from IInputElement.) | |
LostMouseCapture | Occurs when this element loses mouse capture. (Inherited from IInputElement.) | |
LostStylusCapture | Occurs when this element loses stylus capture. (Inherited from IInputElement.) | |
MouseEnter | Occurs when the mouse pointer enters the bounds of this element. (Inherited from IInputElement.) | |
MouseLeave | Occurs when the mouse pointer leaves the bounds of this element. (Inherited from IInputElement.) | |
MouseLeftButtonDown | Occurs when the left mouse button is pressed while the mouse pointer is over the element. (Inherited from IInputElement.) | |
MouseLeftButtonUp | Occurs when the left mouse button is released while the mouse pointer is over the element. (Inherited from IInputElement.) | |
MouseMove | Occurs when the mouse pointer moves while the mouse pointer is over the element. (Inherited from IInputElement.) | |
MouseRightButtonDown | Occurs when the right mouse button is pressed while the mouse pointer is over the element. (Inherited from IInputElement.) | |
MouseRightButtonUp | Occurs when the right mouse button is released while the mouse pointer is over the element. (Inherited from IInputElement.) | |
MouseWheel | Occurs when the mouse wheel moves while the mouse pointer is over this element. (Inherited from IInputElement.) | |
Paint |
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
| |
PreviewGotKeyboardFocus | Occurs when the keyboard is focused on this element. (Inherited from IInputElement.) | |
PreviewKeyDown | Occurs when a key is pressed while the keyboard is focused on this element. (Inherited from IInputElement.) | |
PreviewKeyUp | Occurs when a key is released while the keyboard is focused on this element. (Inherited from IInputElement.) | |
PreviewLostKeyboardFocus | Occurs when the keyboard is no longer focused on this element. (Inherited from IInputElement.) | |
PreviewMouseLeftButtonDown | Occurs when the left mouse button is pressed while the mouse pointer is over the element. (Inherited from IInputElement.) | |
PreviewMouseLeftButtonUp | Occurs when the left mouse button is released while the mouse pointer is over the element. (Inherited from IInputElement.) | |
PreviewMouseMove | Occurs when the mouse pointer moves while the mouse pointer is over the element. (Inherited from IInputElement.) | |
PreviewMouseRightButtonDown | Occurs when the right mouse button is pressed while the mouse pointer is over the element. (Inherited from IInputElement.) | |
PreviewMouseRightButtonUp | Occurs when the right mouse button is released while the mouse pointer is over the element. (Inherited from IInputElement.) | |
PreviewMouseWheel | Occurs when the mouse wheel moves while the mouse pointer is over this element. (Inherited from IInputElement.) | |
PreviewStylusButtonDown | Occurs when the stylus button is pressed down while the stylus is over this element. (Inherited from IInputElement.) | |
PreviewStylusButtonUp | Occurs when the stylus button is released while the stylus is over this element. (Inherited from IInputElement.) | |
PreviewStylusDown | Occurs when the stylus touches the digitizer while over this element. (Inherited from IInputElement.) | |
PreviewStylusInAirMove | Occurs when the stylus moves over an element, but without touching the digitizer. (Inherited from IInputElement.) | |
PreviewStylusInRange | Occurs when the stylus is close enough to the digitizer to be detected. (Inherited from IInputElement.) | |
PreviewStylusMove | Occurs when the stylus moves while the stylus is over the element. (Inherited from IInputElement.) | |
PreviewStylusOutOfRange | Occurs when the stylus is too far from the digitizer to be detected. (Inherited from IInputElement.) | |
PreviewStylusSystemGesture | (Inherited from IInputElement.) | |
PreviewStylusUp | Occurs when the stylus is raised off the digitizer while over this element. (Inherited from IInputElement.) | |
PreviewTextInput | Occurs when this element gets text in a device-independent manner. (Inherited from IInputElement.) | |
StatusMessage |
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.) | |
StylusButtonDown | Occurs when the stylus button is pressed while the stylus is over this element. (Inherited from IInputElement.) | |
StylusButtonUp | Occurs when the stylus button is released while the stylus is over this element. (Inherited from IInputElement.) | |
StylusDown | Occurs when the stylus touches the digitizer while over this element. (Inherited from IInputElement.) | |
StylusEnter | Occurs when the stylus cursor enters the bounds of the element. (Inherited from IInputElement.) | |
StylusInAirMove | Occurs when the stylus moves over an element, but without touching the digitizer. (Inherited from IInputElement.) | |
StylusInRange | Occurs when the stylus is close enough to the digitizer to be detected. (Inherited from IInputElement.) | |
StylusLeave | Occurs when the stylus cursor leaves the bounds of the element. (Inherited from IInputElement.) | |
StylusMove | Occurs when the stylus cursor moves over the element. (Inherited from IInputElement.) | |
StylusOutOfRange | Occurs when the stylus is too far from the digitizer to be detected. (Inherited from IInputElement.) | |
StylusSystemGesture | (Inherited from IInputElement.) | |
StylusUp | Occurs when the stylus is raised off the digitizer while over this element. (Inherited from IInputElement.) | |
TextInput | Occurs when this element gets text in a device-independent manner. (Inherited from IInputElement.) | |
VirtualKeyboardRequested |
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
|