I implemented something in Windows Forms similar to DragMove, but with borders set to 10 units of fields on the main screen.
When migrating to WPF, I found this thread to be useful to achieve the same result.
However, since this event is after the transfer, what happens is that if my window is dragged beyond the borders that I set, it "jumps" back. I would like to avoid this effect because it looks terrible.
Is there an easy way to avoid moving a window outside a given area without using an event LocationChanged? I basically want to limit the movement of the window to .
source
share