用StackPanel实现顶部窗体移动,但mouse相关的时间都不触发,本人是个小白,问其他人说要用路由啥的,

添加了一段

DragMovePnl.AddHandler(StackPanel.MouseLeftButtonDownEvent, new MouseButtonEventHandler(StackPanel_MouseLeftButtonDown), true);

这样的代码,然而还是不行,

最后不知道咋想的,给StackPanel加了个背景色,可以了,很无语

相关文章:

  • 2022-01-31
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-11-01
  • 2021-09-20
相关资源
相似解决方案