Use same dependency property in get and set

Proprietary

The get and set accessors of a CLR property wrapping a dependency property must pass the same dependency property to GetValue and SetValue. Flags a property whose accessors disagree, including the read-only case where the setter must use the DependencyPropertyKey paired with the getter's DependencyProperty.

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

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