WPF 踩坑笔记6 无边框窗体拖拽
作者:互联网
private void ContentControl_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton==MouseButtonState.Pressed) { this.DragMove(); } }
<Window WindowStyle="None" MouseDown="ContentControl_MouseDown">
标签:ContentControl,sender,void,object,边框,MouseDown,窗体,WPF,DragMove 来源: https://www.cnblogs.com/wuhailong/p/15060965.html