CoreWebView2CompositionController.CursorChanged Event

Definition

The event is raised when WebView thinks the cursor should be changed.

public event EventHandler<object> CursorChanged;
member this.CursorChanged : EventHandler<obj> 
Public Custom Event CursorChanged As EventHandler(Of Object) 

Event Type

Remarks

For example, when the mouse cursor is currently the default cursor but is then moved over text, it may try to change to the IBeam cursor. It is expected for the developer to send Leave messages (in addition to Move messages) through SendMouseInput(CoreWebView2MouseEventKind, CoreWebView2MouseEventVirtualKeys, UInt32, Point). This is to ensure that the mouse is actually within the WebView that sends out CursorChanged events.

Applies to