Q&A #20 – Click vs Tap in Windows Phone Button Control

Q&A #20 – Click vs Tap in Windows Phone Button Control

The Button control in Windows Phone exposes the following 2 events “Click” and “Tap” .

Click vs Tap in Windows Phone Button Control
Click vs Tap in Windows Phone Button Control

Although , you can use either of the event , generally the tap event is designed specially for the touch .

private void button1_Click(object sender, RoutedEventArgs e)
{         

}

private void button1_Tap(object sender, GestureEventArgs e)
{

}

The Click event is mainly used when handling the mouse states and can be used if the same code is used for the Silverlight Desktop App.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

No, the forward navigation is currently not supported in Windows Phone 8. Q&A #42 – Is Forward Navigation supported in...
A few months back i had posted a Q&A on the Topic " What it takes to be a Good...
If you are a regular readers of the technical books , Apress is one of the publishers which comes in...