Use SetValue in setter
ProprietaryThe 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. UseSetValueInClrPropertySettermod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. UseSetValueInClrPropertySetterInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.