Event MouseEvent
Raised when a mouse event occurs. Can be cancelled by setting MouseEventArgs.Handled to true.
public static event EventHandler<MouseEventArgs>? MouseEvent
Returns
- EventHandler<MouseEventArgs>
- Raised when a mouse event occurs. Can be cancelled by setting MouseEventArgs.Handled to true.
Remarks
ScreenPosition coordinates are screen-relative.
View will be the deepest view under the under the mouse.
Position coordinates are view-relative. Only valid if View is set.
Use this evento to handle mouse events at the application level, before View-specific handling.