WPF: Slider doesnt raise MouseLeftButtonDown or MouseLeftButtonUp

后端 未结 4 1991
傲寒
傲寒 2021-01-04 01:02

I tried this XAML:



        
4条回答
  •  盖世英雄少女心
    2021-01-04 01:05

    Sliders swallow the MouseDown Events (similar to the button).

    You can register for the PreviewMouseDown and PreviewMouseUp events which get fired before the slider has a chance to handle them.

提交回复
热议问题