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

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

In today’s economy, layoffs have become a common occurrence. Companies may lay off employees for a variety of reasons, including...
Facebook is one of the most popular social media platforms in the world, with millions of users connecting with friends...
Temperature is a critical physical quantity that helps us determine the amount of heat present in a substance or environment....