Convert a CLR event to a routed event

Proprietary

A CLR event on an element cannot be routed through the element tree or handled by a parent. Registers a RoutedEvent for it with EventManager.RegisterRoutedEvent and rewrites the event to add/remove accessors calling AddHandler/RemoveHandler.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.ConvertEventToRoutedEvent
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.ConvertEventToRoutedEvent

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.