Hi,
In my Application I want to handle Tap Event of an image within a ListBox
but the problem is that when I tap on the Image then first the ListBox selection changed event is fired then the Image Tap event is fired. I have to do some other task in ListBox Selection Changed and some other task in image Tap.
Please tell me how to do That.

Ved PrakashPosted Feb 17, 2015, 7:30 AM
The ListBox.SelectionChanged event will always fire before the Tapped event, but once the item is selected, it won't fire again until the selected item changes. That means you can remove the tapped event from the image until the item is selected. Once it is selected, enable the tapped event so you can do stuff again when the tapped event occurs.
There are some different ways to make this happen, (like unsubscribing the event handler) but here's a simpler one: