I used the exact same recipe I used for previous custom controls but when I use them in xaml the app crashes with:
"Exception has been thrown by the target of an invocation." nested down in System.Reflection.MonoCMethod.InternalInvoke.
It's definitely caused by using my custom control - however, I can't work out how to debug what is wrong.
What do you guys do in this situation?