开发者

WPF TouchEvents- capturing very first touchdown

开发者 https://www.devze.com 2023-03-17 15:00 出处:网络
I\'ve got a WPF touch application that\'s working pretty well apart from one thing: cap开发者_如何转开发turing the event that\'s fired when a user first touches an element. TouchDown doesn\'t seem to

I've got a WPF touch application that's working pretty well apart from one thing: cap开发者_如何转开发turing the event that's fired when a user first touches an element. TouchDown doesn't seem to work, at least not without a significant delay. TouchEnter works fine when a user slides their finger onto the element, but when they first put their finger onto it there is a significant delay before any event is fired. I need the element to respond pretty much immediately, so any suggestions?

Thanks in advance


Solution is to add to the XAML for the control: Stylus.IsPressAndHoldEnabled="False"

<Image Name="image" Source="images\animage.jpg" Stylus.IsPressAndHoldEnabled="False"/>
0

精彩评论

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