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

MouseLeftButtonDown=”Window_MouseLeftButtonDown”

 

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

if (e.LeftButton == MouseButtonState.Pressed)
    this.DragMove();

 

相关文章:

  • 2022-01-16
  • 2022-03-05
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2021-06-24
  • 2021-10-04
  • 2021-07-11
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案