In the MouseLeftButtonDown event you just need to put
this.DragMove()
. Something like this
private void Login_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}
This way you can drag the form anywhere with the mouse.
Hope this helps