Call AddHandler in add
ProprietaryThe add accessor of an event backed by a RoutedEvent must call AddHandler. Flags an accessor that calls RemoveHandler instead, which would silently discard subscriptions.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindEventAddAccessorNotCallingAddHandlermod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. FindEventAddAccessorNotCallingAddHandlerInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.