Using custom RoutedEvent in WPF causes TargetInvocationException?

At first I was surprised why it is, but I saw the reason after coding as your code. Just change EventManager. RegisterRoutedEvent("KickedEvent to EventManager.

RegisterRoutedEvent("Kicked.

At first I was surprised why it is, but I saw the reason after coding as your code. Just change EventManager. RegisterRoutedEvent("KickedEvent".... to EventManager.

RegisterRoutedEvent("Kicked"....

Thanks a lot, that was exactly it. I often struggle to debug these kind of WPF errors - the code often compiles, and the runtime error is seldom informative to me. Did you spot the error jsut by looking at the code, or did the runtime error somehow guide you to it?

– Harikawashi Oct 20 at 12:32 Oh, I don't have the better way than just checking exception messages. Sorry for not giving the good idea. This was also very tricky for me.

– jwJung Oct 20 at 12:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions