Use one of the times. In the timer callback or do the following:
int myDeltaX =
int myDeltaY =
Dispatcher.Invoke(new Action<Window, int, int>((window, deltaX, deltaY) => {
window.Left += deltaX;
window.Top += deltaY;
}), this, myDeltaX, myDeltaY);
You can also use
BeginInvoke
, not big difference in this particular case.
—SA