Name the RegisterClassHandler callback OnEventName
ProprietaryThe 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. RenameRegisterClassHandlerCallbackToMatchEventmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. RenameRegisterClassHandlerCallbackToMatchEventInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.