Name the RegisterClassHandler callback OnEventName

Proprietary

The callback registered with EventManager.RegisterClassHandler should be named after the routed event it handles — OnSizeChanged for SizeChangedEvent. Renames the method and all references to it.

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

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