Search code examples
c#xamlwindows-phone-8touchgestures

Touch start Event Handle on Windows Phone c#


I've made some researches and I found that on MSDN

It says that:

Tap

There are two behaviors associated with a tap gesture:

  1. Finger down provides touch indication
  2. Finger up executes the action

I want to handle only the first behavior (On finger Down), but I didn't find anything. How can I handle this?


Solution

  • You can use ManipulationStarted event to handle touch start event. Basically, this event occurs when user begins a manipulation on the UIElement doesn't matter what the gesture is :

    private void MyControl_ManipulationStarted(object sender, 
                                System.Windows.Input.ManipulationStartedEventArgs e)
    {
    
    }