Use containing type

Proprietary

A value converter's shared Default member should hold an instance of the converter that declares it. Flags an initializer that constructs a different converter.

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

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