Use the registered routed event handler type
ProprietaryA handler passed to EventManager.RegisterClassHandler, AddHandler or RemoveHandler must be constructed with the delegate type the RoutedEvent was registered with; WPF rejects any other at run time. Replaces the wrong delegate type with the registered one.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. UseRegisteredRoutedEventHandlerTypemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. UseRegisteredRoutedEventHandlerTypeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.