Use SetValue in setter

Proprietary

The set accessor of a CLR property wrapping a dependency property must call SetValue so the assignment becomes a local value. Replaces SetCurrentValue, substituting the DependencyPropertyKey when the dependency property is read-only.

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

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