Compartilhar via


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 @CoreWebView2MouseEventKind$.Leave messages (in addition to @CoreWebView2MouseEventKind$.Move messages) through @CoreWebView2CompositionController.SendMouseInput. This is to ensure that the mouse is actually within the WebView that sends out CursorChanged events.

Applies to