WPF无边框移动窗体

WPF无边框移动窗体

WPF无边框移动窗体,先在<Window>里添加

MouseLeftButtonDown=”Window_MouseLeftButtonDown”

然后导航到事件,在事件里添加

if (e.LeftButton == MouseButtonState.Pressed)
this.DragMove();
05-11 09:36