Cast the value of a dependency property callback to the correct type

Proprietary

The value a PropertyChangedCallback, CoerceValueCallback or ValidateValueCallback receives is the type the property was registered with. Replaces a cast, as, is or case conversion naming a type the value can never be with the registered type.

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

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