Jamona Mican
Jamona Mican

Reputation: 1654

Custom window moving code. How to deal with rapid mouse movements?

I've created my own code for moving windows around, using the following system:

This works great except in cases where the mouse is moved so fast that the cursor leaves my window, before firing a mousemove event, thus not giving me a chance to move the window in the direction the cursor is moving.

Any solutions to this?

Upvotes: 0

Views: 254

Answers (1)

Pondidum
Pondidum

Reputation: 11637

The method you are after is Mouse.Capture.

This answer has some more details on use within WPF.

Upvotes: 2

Related Questions