Good time, I ran into the problem of associating an anonymous event handler with a WPF element.
myImage.AddHandler(MouseLeftButtonDownEvent, Sub (o, e) anotherMethod(5) End Sub) But at runtime, I get the exception "Handler type mismatch" What am I doing wrong?