开发者

RepeatButton TouchDown

开发者 https://www.devze.com 2023-02-03 14:55 出处:网络
I have a repeatbutton that updates an integer in a textbox by 5. This works well with the mouse. When trying this on the touchscreen, the event doesn\'t get repeated开发者_StackOverflow even though I

I have a repeatbutton that updates an integer in a textbox by 5. This works well with the mouse. When trying this on the touchscreen, the event doesn't get repeated开发者_StackOverflow even though I can see via the style that the button is still down.

I tried handling the TouchDown event because I assumed that it must be the result of the difference between a RoutedEventArgs and TouchEventArgs. This did not provide a continuous firing of the event either. Interestingly though, it did fire both the MouseDOwn and TouchDown events resulting in an increase of 10.

How do I get a repeatbutton to repeat on a touchscreen?

0

精彩评论

暂无评论...
验证码 换一张
取 消