简体   繁体   中英

Click event on Image control Windows Phone 8.1

I'm currently developing an app for Windows Phone 8.1 . As for Windows Phone Silverlight 8.1 , I wanted to bind a click event on an image control but it appears as there is no more Click or Tap event on an Image Control... Is it normal ? Does somebody already manage to get a click event on an image ? I've used PointerEntered method instead but it has a specific behavior...

Try this.

<Image Tapped="btnName_Tapped" Source="Assets/image_icon.png" />

Code Behind:

private void btnName_Tapped(object sender, TappedRoutedEventArgs e) { //your code goes here. }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM