CLR property type should match registered type

Proprietary

The CLR property wrapping a DependencyProperty must be declared with the type the property was registered with, otherwise reading it throws at run time. Corrects the property type and the cast in its getter.

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

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