C# .net WPF无边框移动窗体

转自 http://download.csdn.net/detail/xiang348352/3095084

 

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

MouseLeftButtonDown="Window_MouseLeftButtonDown"

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

if (e.LeftButton == MouseButtonState.Pressed)

this.DragMove();

就可以了,还不懂的话,就下载研究

转自 http://download.csdn.net/detail/xiang348352/3095084

posted @ 2013-09-03 09:46  kumat  阅读(3075)  评论(0编辑  收藏  举报