Register a name and an owning type for a RoutedCommand

Proprietary

A RoutedCommand or RoutedUICommand created with the parameterless constructor has no name and no owner type. Registers the containing member and the containing type; for a RoutedUICommand the display text is filled in with "PLACEHOLDER TEXT", matching WpfAnalyzers, because the source contains nothing to derive it from.

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

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