在布局控件(一般是Grid)中加上MouseLeftButtonDown事件:
1 Grid_MouseLeftButtonDown(object sender, EventArgs e)2 {3 base.DragMove();4 }