A few days ago I accidently did a replace on the Entire Solution - I was replace a MouseLEftButtonUp by _Tap. Now, even though I am doing a Tap event on an image in Windows Phone, I get the following error:
Failed to assign to property 'System.Windows.UIElement.MouseLeftButtonUp
Does anyone know how I can fix this? It's a very specific problem.
That is most likely due to the fact that the event signature of UIElement.MouseLeftButtonUp is different that UIElement.Tap.
The
MouseLeftButtonUp
uses aMouseButtonEventHandler
, but theTap
requires aEventHandler<GestureEventArgs>
, so you'll have to go to all your handlers and change theMouseButtonEventArgs e
parameter toEventArgs<GestureEventArgs> e
.