Convert a trivial dependency property callback to a lambda

Proprietary

A PropertyChangedCallback, CoerceValueCallback or ValidateValueCallback whose body is a single expression is inlined as a lambda at the registration, so the callback sits next to the property it belongs to. The method is removed when nothing else used it.

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

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