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

Proprietary

A direct cast of the value in a dependency property callback should name the type the property was registered with rather than a base type, so that the cast documents what the value really is.

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

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