开发者

WPF TouchEvents- capturing very first touchdown

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜