I hope you can give me some clarity about RoutedEvents (not about the thing at all - I know it from WPF) my question is about your Silverlight implementation.
I first tried it with the help - but there is no chapter about routed events - I can only find the class documentation.
I watched this session:
And as I saw in the TOC there is a topic "set from XAML" I thought - wow - great.
But by watching the sample I saw the at the "from XAML" part there was only a demonstration that I can consume this event defined on the button in XAML - that has nothing to do with RoutedEvents - it's just a proof that the implemented property is accessible from XAML.
The code looks like this:
So I gave it a try (if it really works from XAML - in code behind it works I know) and changed the code like this:
So thats what I would do in WPF - or in other words what I would do to assign routed events in XAML.
BUT - it does not compile. VS tells me that MyButton does not provide such an "appendable property".
So am I doing something wrong or does this simply mean that your RoutedEvent implementation does not support XAML?