← All recipes
Moderne licensed

StyleTypedProperty should be specified for a Style property

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindMissingStyleTypedPropertyArtifactOpenRewrite.Recipes.CSharp.CodeQuality

A DependencyProperty registered as typeof(Style) needs a matching [StyleTypedProperty] on its owning type for the designer to know what the style targets. Flags the backing member; the target type has to be chosen by hand.

Single recipecsharpcode-qualityProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindMissingStyleTypedProperty

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality