I am building a .NET 4.0 WPF Application with items that the user can both drag and drop and execute.
For the drag and drop, I am using the Tap and Slide (aka Tap and a Half): Microsoft Surface Touch: Tap, swipe, and beyond
For the execute, I am using a Double Tap
Ran into conflicts between the two, since the tap and slide involved two TouchDown Events
. I have a workaround, but it feels hacky (changed it to look for TouchUp Event
) for the Double Tap.
What I really need is a DoubleTap Event
.
I found Silverlight UIElement.DoubleTap Event.
However, it seems that this Event is not there for WPF, unless I am just plain missing something.
Is there any sort of alternative for WPF? Does anyone know why they would provide this event in Silverlight's UIElement
, but not in WPF's UIElement
?
Thank you,
Philip
As far as I know wpf doesn't have an explicit double tap event. But you can use single tap event (detect it as SystemGesture.Tap) and check if it's happened twice in a row.