MouseLeftButtonDown 事件
//xaml代码
<Window
x:Class = "wpf.window1"
MouseLeftButtonDown="Window_MouseLeftButtonDown">
</WIndow>
//后台代码
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}
MouseLeftButtonDown 事件
//xaml代码
<Window
x:Class = "wpf.window1"
MouseLeftButtonDown="Window_MouseLeftButtonDown">
</WIndow>
//后台代码
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}