Adding a custom event to a class.
I am trying to use a custom event with a class. I'd usually be in WPF and use EventManager to create a RoutedEvent.
Can you give an example of creating a RoutedEvent say CustomEvent with CustomRoytedEventArgs cusing cshtml5. Most of the bits I would expect to use are missing from the documentation.
Or I could be wrong of course but a simple example so I can use
CustomEvent=handler in Xaml
and obj.CustomEvent+=handler in c#