DoubleTap event from Silverlight to WPF
I am creating a .NET .NET WPF application with elements that the user can drag and drop and execute.
-
To drag and drop, I use Tap and Slide (aka Tap and floor): Microsoft Surface touch: tap, swipe, and more
-
I use Double Tap to perform
In conflicts between them, as the tap and slide included two TouchDown Events
. I have a workaround, but it feels hacky (changed it to look for TouchUp Event
) for Double click .
I really need to DoubleTap Event
.
I found Silverlight UIElement.DoubleTap Event .
However, it looks like this event doesn't exist for WPF, unless I just can't see anything.
Is there any alternative to WPF? Does anyone know why they would provide this event in Silverlight UIElement
but not WPF UIElement
?
Thank,
Philip
source to share
As far as I know wpf doesn't have an explicit double touch event. But you can use a single tap event (define it as SystemGesture.Tap ) and check if it happened twice in a row.
source to share