Event UnGrabbingMouse
Raised when a view requests to release the mouse grab; can be cancelled.
event EventHandler<GrabMouseEventArgs>? UnGrabbingMouse
Returns
- EventHandler<GrabMouseEventArgs>
- Raised when a view requests to release the mouse grab; can be cancelled.
Remarks
This event fires before the grab is released. Handlers can set Cancel to true to prevent the ungrab from occurring.
Use Cases for Cancellation:
- Preventing ungrab during a critical operation that must complete.
- Implementing confirmation dialogs before releasing a drag.
- Enforcing constraints on when a grab can be released.
The View property contains the view attempting to release the grab.