Containing type should be used as registered owner

Proprietary

A RoutedEvent must name the type that declares it as owner in its EventManager.RegisterRoutedEvent call. Replaces the typeof(...) owner argument with the containing type.

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

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