WPF无边框移动窗体,先在<Window>里添加MouseLeftButtonDown=”Window_MouseLeftButtonDown”然后导航到事件,在事件里添加if (e.LeftButton == MouseButtonState.Pressed) this.DragMove();