【问题标题】:detecting vertical mouse motion on a horizontal slider检测水平滑块上的垂直鼠标运动
【发布时间】:2012-03-06 19:19:12
【问题描述】:

我在 WPF 中使用水平滑块,但如果鼠标垂直移动,我还想执行一些操作(例如更改某些控件的亮度)。

我尝试响应 MouseMove,但如果鼠标完全垂直移动,则在拖动滑块时我没有得到更新 - 我的函数仅在滑块实际移动时被调用。

【问题讨论】:

    标签: wpf slider


    【解决方案1】:

    您可以将处理程序附加到滑块的PreviewMouseMove 事件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-28
      • 2019-04-07
      • 2016-10-07
      • 1970-01-01
      • 2010-12-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-06
      相关资源
      最近更新 更多