Search code examples
c#xamlwindows-8touchdouble-click

Windows 8 / XAML Double Tap event always preceded by Tap


I've got a button in an app. I want it to do different things depending on whether I tap it (pause an animation) or double-tap (restart the animation)

however, when I double-tap, it seems to fire the tap event first and then the double-tap in quick succession. Is there a way around this? Is this a known issue or am I making a rookie mistake?

Edit: For those asking, I'm using the Tapped and DoubleTapped events.


Solution

  • You might want to consider letting it do both. Think about it like double clicking a folder in windows. Users will be used to something happening on the first click (highlighting the folder) and they will be expecting the double click to both highlight, then navigate.

    All in all it seems like a design issue, not a technical one.