Reputation: 1654
I've created my own code for moving windows around, using the following system:
mousedown (in a certain area) activates the move
track mousemove events to move window with cursor
mouseup event completes the move
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
Reputation: 11637
The method you are after is Mouse.Capture
.
This answer has some more details on use within WPF.
Upvotes: 2