Alberto
Alberto

Reputation: 383

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?

Upvotes: 2

Views: 271

Answers (2)

har07
har07

Reputation: 89285

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)
{

}

Upvotes: 1

Kulasangar
Kulasangar

Reputation: 9434

Why don't you try using the MouseLeave and MouseEnter events to your control.

So i guess in your case you could use the MouseEnter event.

MSDN reference

Upvotes: 1

Related Questions