0

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.

LU RD
  • 34,438
  • 5
  • 88
  • 296
Subby
  • 3
  • 2
  • 1
    Could we see some XAML code from your image and the event handler you are using to handle the event. :) – BigL Mar 26 '12 at 10:39

1 Answers1

2

That is most likely due to the fact that the event signature of UIElement.MouseLeftButtonUp is different that UIElement.Tap.

The MouseLeftButtonUp uses a MouseButtonEventHandler, but the Tap requires a EventHandler<GestureEventArgs>, so you'll have to go to all your handlers and change the MouseButtonEventArgs e parameter to EventArgs<GestureEventArgs> e.

Pedro Lamas
  • 7,185
  • 4
  • 27
  • 35