Cast the sender of a dependency property callback to the correct type
ProprietaryThe DependencyObject passed to a PropertyChangedCallback or CoerceValueCallback is the type that registered the property. Replaces a cast, as, is or case conversion naming a type the sender can never be with the registering type.
OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. CastSenderToCorrectTypemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Wpf. CastSenderToCorrectTypeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.