Set a mutable dependency property using SetCurrentValue

Proprietary

Assigning a dependency property's CLR property, or calling SetValue, writes the local value and permanently outranks any binding, style, trigger or animation on that property. Replaces both with SetCurrentValue, which sets the effective value without changing the value source.

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

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