• 周三. 9 月 18th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

WPF 踩坑笔记6 无边框窗体拖拽

admin

11 月 28, 2021
 private void ContentControl_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton==MouseButtonState.Pressed)
     {
          this.DragMove();
     }
 }

  

<Window  WindowStyle="None" MouseDown="ContentControl_MouseDown">

发表回复